-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
52 lines (35 loc) · 1.39 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
PROJECT(CDCVAM)
cmake_minimum_required (VERSION 3.1)
cmake_policy(SET CMP0057 NEW) # the new interpretation of IN_LIST is by default not set (at least until 3.21.1).
SET(CDCVAM_SRC_COMP
${PROJECT_SOURCE_DIR}/src/GeodesicGraphComputer.cpp
${PROJECT_SOURCE_DIR}/src/NormalAccumulator.cpp)
message(STATUS "-------------------------------------------------------------------------------")
message(STATUS "Checking if DGtal is installed:")
FIND_PACKAGE(DGtal 0.9.3 REQUIRED)
INCLUDE_DIRECTORIES(${DGTAL_INCLUDE_DIRS})
LINK_DIRECTORIES(${DGTAL_LIBRARY_DIRS})
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
message(STATUS "DGtal found.")
# -----------------------------------------------------------------------------
# CPP11
# -----------------------------------------------------------------------------
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED TRUE)
include_directories ("${PROJECT_SOURCE_DIR}/src")
# CLI11
include_directories( "${PROJECT_SOURCE_DIR}/ext/" )
if ( USE_PCL )
find_package(PCL 1.3 REQUIRED COMPONENTS common segmentation)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_definitions(-DUSE_PCL=${USE_PCL})
SET(PCLLib ${PCL_SEGMENTATION_LIBRARIES})
else ()
SET(PCLLib "")
endif()
add_subdirectory(bin)
add_subdirectory(tests)
add_subdirectory(examples)
add_subdirectory(tools)