-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 1.07 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
cmake_minimum_required(VERSION 2.8.3)
project(vapor_master)
find_package(catkin REQUIRED COMPONENTS
# std_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES vapor_master
# CATKIN_DEPENDS std_msgs
# DEPENDS nodejs
)
execute_process(COMMAND rm -rf ${CMAKE_CURRENT_SOURCE_DIR}/node_modules ${CMAKE_CURRENT_SOURCE_DIR}/dist )
execute_process(COMMAND npm --prefix ${CMAKE_CURRENT_SOURCE_DIR} install)
execute_process(COMMAND npm --prefix ${CMAKE_CURRENT_SOURCE_DIR} run prepare-catkin)
execute_process(COMMAND rm -rf ${CMAKE_CURRENT_SOURCE_DIR}/node_modules )
execute_process(COMMAND npm --prefix ${CMAKE_CURRENT_SOURCE_DIR} --production install)
install(PROGRAMS bin/vapor_master
DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
install(PROGRAMS package.json
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(DIRECTORY dist/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/dist
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
install(DIRECTORY node_modules
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)