CMakeLists.txt
1.3 KB
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
cmake_minimum_required( VERSION 2.8)
set( CMAKE_CXX_STANDARD 11)
project( pollen3D)
find_package( OpenCV REQUIRED)
set( CMAKE_BUILD_TYPE Release)
find_package( PCL 1.8 REQUIRED)
include_directories( ${PCL_INCLUDE_DIRS})
link_directories( ${PCL_LIBRARY_DIRS})
link_directories( ${PCL_GENERATE_DIRS})
add_definitions( ${PCL_DEFINITIONS})
find_package( NLopt REQUIRED)
include_directories( ${NLOPT_INCLUDE_DIRS})
set( PROJECT_SOURCES
${SOURCE}
./src/main.cpp
./src/Autocalib.cpp
./src/FundMatFitting.cpp
./src/optimization.cpp
./src/matcell.cpp
./src/utils.cpp
./src/transformations.cpp
./src/3dReconst.cpp
./src/RectifierAffine.cpp
./src/densematcher.cpp
./src/triangulation.cpp
)
set( PROJET_HEADERS
./include/Autocalib.h
./include/transformations.h
./include/FundMatFitting.hpp
./include/robust_estim.hpp
./include/optimization.h
./include/matcell.h
./include/utils.h
./include/3dReconst.h
./include/RectifierAffine.hpp
./include/densematcher.h
./include/triangulation.h
)
add_executable( pollen3D ${PROJECT_SOURCES} ${PROJECT_HEADER})
include_directories( ${CMAKE_SOURCE_DIR}/include)
target_link_libraries( pollen3D ${OpenCV_LIBS})
target_link_libraries( pollen3D ${PCL_LIBRARIES})
target_link_libraries( pollen3D ${NLOPT_LIBRARIES})