-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (25 loc) · 1.03 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
cmake_minimum_required(VERSION 2.8)
project(BundleAdjuster)
# # Google Logging
# message("-- Check for Google Log")
# find_package(Glog REQUIRED)
# if(GLOG_FOUND)
# message("-- Found Google Logging: ${GLOG_INCLUDE_DIRS}")
# else(GLOG_FOUND)
# message(FATAL_ERROR "Can't find Google Logging. Please set GLOG_INCLUDE_DIR & GLOG_LIBRARY")
# endif(GLOG_FOUND)
# Ceres Solver
set(Ceres_DIR "/home/anirudha/rrc_project/ceres/ceres-bin")
message("-- Check for Ceres solver")
find_package(Ceres REQUIRED)
if(CERES_FOUND)
message("-- Found Ceres Solver: ${CERES_INCLUDE_DIRS}")
else(CERES_FOUND)
message(FATAL_ERROR "Can't find Ceres Solver. Please set CERES_INCLUDE_DIR & CERES_LIBRARY")
endif(CERES_FOUND)
include_directories(${CMAKE_INCLUDE_PATH} ${CERES_INCLUDE_DIRS})
# Add the executable
add_executable(singleViewPoseAdjuster singleViewPoseAdjuster.cc)
target_link_libraries(singleViewPoseAdjuster ${CERES_LIBRARIES})
add_executable(singleViewShapeAdjuster singleViewShapeAdjuster.cc)
target_link_libraries(singleViewShapeAdjuster ${CERES_LIBRARIES})