-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
53 lines (47 loc) · 1.26 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
cmake_minimum_required(VERSION 2.8)
project(StereoVO)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenCV 3.0 QUIET)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 3.0 not found.")
find_package(OpenCV 2.4.3 QUIET)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 2.4.3 not found.")
endif()
endif()
# Ceres
find_package(Ceres REQUIRED)
#mynteye
#find_package(mynteye REQUIRED)
#set(__link_libs mynteye)
# Pangolin
find_package(Pangolin REQUIRED)
#
## OpenCV
include_directories(
${PROJECT_SOURCE_DIR}/include
${OpenCV_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
${Pangolin_INCLUDE_DIRS}
)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
add_library(${PROJECT_NAME} SHARED
./src/frame.cc
./src/track.cc
./src/map.cc
./src/mappoint.cc
./src/config.cc
./src/camera.cc
)
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${CERES_LIBRARIES}
${Pangolin_LIBRARIES}
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
add_executable(KITTI ./demo/KITTI.cc)
target_link_libraries(KITTI ${PROJECT_NAME})
#add_executable(mynteye_demo demo/mynteye.cc)
#target_link_libraries(mynteye_demo ${PROJECT_NAME}
# {__link_libs}
# )