-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (30 loc) · 946 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
cmake_minimum_required(VERSION 2.6)
project(ProBLM)
set(CMAKE_CXX_STANDARD 17)
set (V3D_DIR ${CMAKE_SOURCE_DIR}/Libs/V3D/)
include (${V3D_DIR}/Config/v3d_macros.cmake)
include (${V3D_DIR}/Config/local_config.cmake)
set (EXTRA_INC_DIRS /usr/local/include
/usr/include/
/usr/local/include/eigen3
${V3D_DIR}/
./include/
)
set (SOURCES
src/twoview_models.cpp
src/nlsq.cpp
src/stochastic_nlsq.cpp
src/robust_nlsq.cpp
src/robust_nlsq_gnc.cpp
)
set (CMAKE_BUILD_TYPE Release)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "-O3")
endif()
include_directories( ${V3D_INCLUDE_DIRS} ${EXTRA_INC_DIRS})
link_directories(${V3D_DIR}/)
add_executable(problm main.cpp ${SOURCES})
target_link_libraries(problm)
add_executable(homography homography_registration.cpp ${SOURCES})
target_link_libraries(homography libV3D.a png z jpeg)