forked from 2013fangwentao/Multi_Sensor_Fusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (35 loc) · 1.55 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
cmake_minimum_required( VERSION 2.8 )
PROJECT(mscnav)
# set(Ceres_DIR /opt/thirdparty/lib/cmake/Ceres)
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 -march=native -O0 -pthread" )
SET( CMAKE_BUILD_TYPE "debug")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include
${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}/thirdparty)
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)