-
Notifications
You must be signed in to change notification settings - Fork 268
/
CMakeLists.txt
54 lines (45 loc) · 1.13 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.0.2)
project(nmea_navsat_driver)
if (NOT CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
)
endif()
if (CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
catkin_virtualenv
)
endif()
catkin_python_setup()
catkin_package()
install(PROGRAMS
scripts/nmea_serial_driver
scripts/nmea_socket_driver
scripts/nmea_topic_driver
scripts/nmea_topic_serial_reader
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
FILES_MATCHING PATTERN "*.launch"
)
install(FILES
LICENSE.txt
test/requirements.txt
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
if (CATKIN_ENABLE_TESTING)
catkin_generate_virtualenv(
PYTHON_INTERPRETER python3
)
catkin_add_nosetests(
test/test_driver.py
DEPENDENCIES ${${PROJECT_NAME}_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_virtualenv
)
catkin_install_python(
PROGRAMS
test/test_driver.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
find_package(roslint REQUIRED)
roslint_python()
roslint_add_test()
endif()