-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (24 loc) · 943 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
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
set (CMAKE_CXX_STANDARD 17)
project (myCeres)
set(CMAKE_BUILD_TYPE Debug)
find_package (Eigen3 3.3 REQUIRED NO_MODULE)
find_package(glog REQUIRED)
find_package(Gflags REQUIRED)
find_package(Ceres REQUIRED)
find_package(OpenCV 4 REQUIRED)
add_executable(helloworld ceres/helloworld.cc)
target_link_libraries(helloworld glog ceres)
add_executable(powell ceres/powell.cc)
target_link_libraries(powell ${GLOG_LIBRARIES} ${CERES_LIBRARIES} ${GFLAGS_LIBRARIES})
add_executable(curvefitting ceres/curvefitting.cc)
target_link_libraries(curvefitting
${CERES_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_executable(BundleAdjustment ceres/BundleAdjustment.cc)
target_link_libraries(BundleAdjustment glog ceres)
add_executable(BundleAdjSimpleRef ceres/BundleAdjSimpleRef.cc)
target_link_libraries(BundleAdjSimpleRef glog ceres)
add_executable(circle ceres/circle.cc)
target_link_libraries(circle glog ceres)