-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathCMakeLists.txt
60 lines (50 loc) · 1.42 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
project(ETH3DMultiViewEvaluation)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# External dependency: boost filesystem
find_package(Boost COMPONENTS filesystem system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
# External dependency: Eigen3
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIRS})
# External dependency: PCL
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
# OpenMP
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
# Settings.
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Build type not specified, using RelWithDebInfo")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_definitions("-O2 -msse2 -msse3 -std=c++11")
endif()
include_directories(
./src
)
# Evaluation executable.
add_executable(ETH3DMultiViewEvaluation
src/accuracy.cc
src/accuracy.h
src/completeness.cc
src/completeness.h
src/main.cc
src/meshlab_project.cc
src/meshlab_project.h
src/tinyxml2.cpp
src/tinyxml2.h
src/util.h
)
target_link_libraries(ETH3DMultiViewEvaluation
${PCL_LIBRARIES}
${Boost_LIBRARIES}
)