-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (31 loc) · 1004 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
cmake_minimum_required(VERSION 2.8)
project(icp)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -O3 -march=native -pthread")
#------------------------------------------
# Eigen
#------------------------------------------
find_package(Eigen3 3.0 REQUIRED NO_MODULE)
include_directories(${EIGEN3_INCLUDE_DIR})
#------------------------------------------
# PCL
#------------------------------------------
find_package(PCL REQUIRED)
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})
link_libraries(${PCL_LIBRARY_DIRS})
include_directories(${PROJECT_SOURCE_DIR})
add_library(${PROJECT_NAME} SHARED
Viewer/Viewer.cpp
Utils/Random.cpp
Algorithms/Icp.cpp
Algorithms/Gicp.cpp
Algorithms/AbstractIcp.cpp
)
target_link_libraries(${PROJECT_NAME}
${EIGEN3_LIBS}
${PCL_LIBRARIES}
)
add_executable(main main.cpp)
target_link_libraries(main ${PROJECT_NAME})