forked from jmessias/topological_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
60 lines (38 loc) · 1.51 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
55
56
57
58
59
60
cmake_minimum_required(VERSION 2.8.3)
project(topological_tools)
find_package(catkin REQUIRED COMPONENTS
roscpp
message_generation)
find_package( SDL )
find_package( SDL_image )
add_message_files(FILES
PoseLabel.msg)
generate_messages(DEPENDENCIES std_msgs)
if ( SDLIMAGE_FOUND )
add_library(topological_tools
src/topological_node.cpp
src/topological_map.cpp
src/pose_labeler.cpp)
else ( SDLIMAGE_FOUND )
add_library(topological_tools
src/topological_node.cpp
src/topological_map.cpp)
message(STATUS "WARNING: The SDL_image libary was not found on this system.")
message(STATUS "WARNING: You won't be able to use the pose_labeler tool or its dependencies.")
endif ( SDLIMAGE_FOUND )
catkin_package(
INCLUDE_DIRS include
LIBRARIES topological_tools
CATKIN_DEPENDS roscpp
)
include_directories(include ${catkin_INCLUDE_DIRS})
add_dependencies(topological_tools ${PROJECT_NAME}_generate_messages_cpp)
if ( SDLIMAGE_FOUND )
target_link_libraries(topological_tools ${catkin_LIBRARIES} ${SDLIMAGE_LIBRARY})
add_executable(pose_labeler_node
src/pose_labeler_node.cpp)
add_dependencies(pose_labeler_node ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(pose_labeler_node ${catkin_LIBRARIES} ${SDLIMAGE_LIBRARY} topological_tools)
else ( SDLIMAGE_FOUND )
target_link_libraries(topological_tools ${catkin_LIBRARIES})
endif ( SDLIMAGE_FOUND )