-
Notifications
You must be signed in to change notification settings - Fork 253
/
CMakeLists.txt
44 lines (37 loc) · 1.64 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
cmake_minimum_required( VERSION 2.8 )
PROJECT(mscnav)
set(Ceres_DIR /opt/lib/cmake/Ceres)
# set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}")
find_package(glog REQUIRED)
find_package(gflags REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
SET(CMAKE_CXX_COMPILE "g++")
SET(CMAKE_C_COMPILE "gcc")
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -pthread" )
SET( CMAKE_BUILD_TYPE "release")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include
/usr/include/suitesparse
${PROJECT_SOURCE_DIR}/submodules/tools/include
${PROJECT_SOURCE_DIR}/thirdparty
${EIGEN3_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${GLOG_INCLUDE_DIR}
${CERES_INCLUDE_DIRS}
${GFLAGS_INCLUDE_DIRS})
MESSAGE(STATUS "Eigen include: ${EIGEN3_INCLUDE_DIRS}")
MESSAGE(STATUS "OpenCV include: ${OpenCV_INCLUDE_DIRS}")
MESSAGE(STATUS "Ceres include: ${CERES_INCLUDE_DIRS}")
MESSAGE(STATUS "glog include: ${GLOG_INCLUDE_DIR}")
add_subdirectory(${PROJECT_SOURCE_DIR}/submodules/tools)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/filter)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/imu)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/camera)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/data)
add_subdirectory(${PROJECT_SOURCE_DIR}/src/process)
add_subdirectory(${PROJECT_SOURCE_DIR}/test)
add_subdirectory(${PROJECT_SOURCE_DIR}/tools)
add_subdirectory(${PROJECT_SOURCE_DIR}/exec)