-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·51 lines (38 loc) · 925 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
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.0.2)
project(convex_optimize_fitting)
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
pcl_ros
roscpp
tf
obsdet_msgs
)
find_package(OpenCV REQUIRED)
find_package (Eigen3 REQUIRED)
set(CMAKE_CXX_FLAGS "-O2 -Wall ${CMAKE_CXX_FLAGS}")
catkin_package(
INCLUDE_DIRS
CATKIN_DEPENDS pcl_ros obsdet_msgs
)
link_directories(${OpenCV_LIBRARY_DIRS})
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
set(SOURCE_FILES
src/convex_optimize_fitting.cpp
)
add_executable(convex_optimize_fitting ${SOURCE_FILES})
add_dependencies(convex_optimize_fitting
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(convex_optimize_fitting
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)