forked from AndreaCensi/csm
-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
90 lines (68 loc) · 1.54 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
cmake_minimum_required(VERSION 3.5)
project(csm)
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(Eigen3 REQUIRED)
if(WIN32)
add_definitions(-DWINDOWS)
if(MSVC)
# SSE2 optimizations
add_definitions("/arch:SSE2")
endif()
endif()
include_directories(
include
src
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS})
set(CSM_SRC
src/csm/laser_data.cpp
src/csm/math_utils.cpp
src/csm/math_utils_gsl.cpp
src/csm/utils.cpp
src/csm/logging.cpp
src/csm/sm_options.cpp
src/csm/orientation.cpp
src/csm/clustering.cpp)
set(EGSL_SRC
src/egsl/egsl.cpp
src/egsl/egsl_conversions.cpp
src/egsl/egsl_misc.cpp
src/egsl/egsl_ops.cpp)
set(GPC_SRC
src/gpc/gpc.cpp
src/gpc/gpc_utils.cpp)
set(ICP_SRC
src/icp/icp.cpp
src/icp/icp_corr_dumb.cpp
src/icp/icp_corr_tricks.cpp
src/icp/icp_covariance.cpp
src/icp/icp_debug.cpp
src/icp/icp_loop.cpp
src/icp/icp_outliers.cpp)
set(OPTIONS_SRC
src/options/options.cpp
src/options/options_interface.cpp)
add_library(${PROJECT_NAME} SHARED
${CSM_SRC}
${EGSL_SRC}
${GPC_SRC}
${ICP_SRC}
${OPTIONS_SRC})
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
)
install(DIRECTORY include
DESTINATION include/../
)
install(DIRECTORY resource
DESTINATION share/${PROJECT_NAME})
install(DIRECTORY include/gsl_eigen/
DESTINATION include/../gsl_eigen
)
ament_export_dependencies(rclcpp)
ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})
ament_package()