-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (24 loc) · 1.15 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
cmake_minimum_required(VERSION 3.1)
project(ICP_registration_viewer)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# libigl
option(LIBIGL_WITH_OPENGL "Use OpenGL" ON)
option(LIBIGL_WITH_OPENGL_GLFW "Use GLFW" ON)
option(LIBIGL_WITH_OPENGL_GLFW_IMGUI "Use IMGUI" ON)
find_package(LIBIGL REQUIRED QUIET)
# ANN
include_directories(${PROJECT_SOURCE_DIR}/../../ann_1.1.2/include)
link_directories(${PROJECT_SOURCE_DIR}/../../ann_1.1.2/lib)
# Add your project files
set(SRC_FILES ${PROJECT_SOURCE_DIR}/main.cpp
${PROJECT_SOURCE_DIR}/PointCloudData.hpp
${PROJECT_SOURCE_DIR}/PointCloudData.cpp
${PROJECT_SOURCE_DIR}/ICPHandler.hpp
${PROJECT_SOURCE_DIR}/ICPHandler.cpp
${PROJECT_SOURCE_DIR}/ICPViewerManager.hpp
${PROJECT_SOURCE_DIR}/ICPViewerManager.cpp
)
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
add_executable(${PROJECT_NAME}_bin ${SRC_FILES})
target_link_libraries(${PROJECT_NAME}_bin igl::core igl::opengl_glfw igl::opengl_glfw_imgui ANN)