enable package builds
[osm/SO.git] / rwcal / src / CMakeLists.txt
1
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
20 cmake_minimum_required(VERSION 2.8)
21
22 add_definitions(-std=gnu99)
23
24 add_library(rwcal_api SHARED
25   rwcal_py.c)
26
27 target_link_libraries(rwcal_api PRIVATE
28   rwcal-1.0
29   rwcal_yang_gen
30   rwlib
31   rw_vx_plugin
32   peas-1.0)
33
34 add_dependencies(rwcal_api rwmanifest_yang.headers)
35
36 install(TARGETS rwcal_api LIBRARY DESTINATION usr/lib COMPONENT ${PKG_LONG_NAME})
37
38 install(PROGRAMS rwvim.py DESTINATION usr/bin COMPONENT ${PKG_LONG_NAME})