update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / rwcal / test / 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): Anil Gunturu
17 # Creation Date: 06/27/2014
18
19
20 cmake_minimum_required(VERSION 2.8)
21
22 set(subdirs cal_module_test)
23 rift_add_subdirs(SUBDIR_LIST ${subdirs})
24
25 # rift_gtest(unittest_rwcal_cloud
26 #   TEST_SRCS rwcal_cloud_gtest.cpp
27 #   TEST_LIBS
28 #     rwcal_api
29 #     rwcal_yang_gen
30 # )
31
32 rift_gtest(unittest_rwcal_callback
33   TEST_SRCS rwcal_callback_gtest.cpp
34   TEST_LIBS
35     rwcal-1.0
36     rwcal_api
37 )
38
39 ##
40 # Add the basic plugin python test
41 ##
42 #rift_py3test(openstack_cal_tests
43 #  LONG_UNITTEST_TARGET
44 #  TEST_ARGS -m pytest --junit-xml=${RIFT_UNITTEST_DIR}/openstack_cal/unittest.xml #${CMAKE_CURRENT_SOURCE_DIR}/test_rwcal_openstack_pytest.py
45 #)
46
47
48 add_executable(rwcal_dump rwcal_dump.cpp)
49 target_link_libraries(rwcal_dump
50   rwcal_api
51   rwlib
52   rwyang
53   rwcal_yang_gen
54   CoreFoundation
55   glib-2.0
56   protobuf-c
57 )
58
59 # added for 4.0
60 install(
61   FILES 
62     RIFT.ware-ready.py 
63     openstack_resources.py
64   DESTINATION usr/bin
65   COMPONENT ${INSTALL_COMPONENT}
66 )
67