blob: 9bbe77f25f62139fab6c2f1e04055a363ebd8049 [file] [log] [blame]
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -04001#
2# Copyright 2016 RIFT.IO Inc
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# Author(s): Tim Mortsolf
17# Creation Date: 05/22/2014
18#
19
20cmake_minimum_required(VERSION 2.8)
21
22add_definitions(-std=gnu99)
23
24add_library(rwcal_api SHARED
25 rwcal_py.c)
26
27target_link_libraries(rwcal_api PRIVATE
28 rwcal-1.0
29 rwcal_yang_gen
30 rwlib
31 rw_vx_plugin
32 peas-1.0)
33
34add_dependencies(rwcal_api rwmanifest_yang.headers)
35
36install(TARGETS rwcal_api LIBRARY DESTINATION usr/lib COMPONENT ${PKG_LONG_NAME})
37
38install(PROGRAMS rwvim.py DESTINATION usr/bin COMPONENT ${PKG_LONG_NAME})