-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·63 lines (50 loc) · 1.22 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
61
62
63
cmake_minimum_required(VERSION 3.0.2)
project(fcc)
add_compile_options(-std=c++17)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
pcl_ros
tf2_ros
tf2_geometry_msgs
dynamic_reconfigure
autoware_msgs
jsk_recognition_msgs
)
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_FLAGS "-O2 -Wall ${CMAKE_CXX_FLAGS}")
generate_dynamic_reconfigure_options(
cfg/fcc.cfg
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES fcc
CATKIN_DEPENDS roscpp std_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${dynamic_reconfigure_PACKAGE_PATH}/cmake/cfgbuild.cmake
${OpenCV_INCLUDE_DIRS}
)
link_directories(${OpenCV_LIBRARY_DIRS})
## Declare a C++ library
# add_library(${PROJECT_NAME}
# src/dbscan_kdtree.hpp
# )
add_executable(fcc_node
src/fcc.cpp
)
## Add cmake target dependencies of the executable
## same as for the library above
add_dependencies(fcc_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
target_link_libraries(fcc_node
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
)