-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
39 lines (32 loc) · 972 Bytes
/
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 3.8)
project(mobile_message_service_generator)
# Find ROS
if($ENV{ROS_VERSION} EQUAL 1)
find_package(
catkin REQUIRED COMPONENTS
genmsg
mobile_catkin_gradle_plugins
mobile_catkin_modules_build_development_tools
)
else()
find_package(ament_cmake REQUIRED
genmsg
mobile_catkin_gradle_plugins
mobile_catkin_modules_build_development_tools
)
endif()
if($ENV{ROS_VERSION} EQUAL 1)
catkin_package(
CATKIN_DEPENDS genmsg mobile_catkin_modules_build_development_tools
CFG_EXTRAS
mobile_message_service_generator-extras.cmake
mobile_message_service_generator-catkin-api.cmake
)
endif()
catkin_python_setup()
add_subdirectory(scripts)
file(WRITE ${CATKIN_DEVEL_PREFIX}/${GENMSG_LANGS_DESTINATION}/mobile_message_service_generator "Java")
install(
FILES ${CATKIN_DEVEL_PREFIX}/${GENMSG_LANGS_DESTINATION}/mobile_message_service_generator
DESTINATION ${GENMSG_LANGS_DESTINATION}
)