forked from plumonito/dtslam
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
29 lines (21 loc) · 835 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
cmake_minimum_required(VERSION 3.0)
project(dtslam CXX C)
add_subdirectory(3rdparty)
if(MSVC)
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release)
set(CMAKE_MAP_IMPORTED_CONFIG_MINSIZEREL Release)
set(CMAKE_MAP_IMPORTED_CONFIG Release)
endif()
find_package(freeglut REQUIRED QUIET PATHS "${EP_PREFIX}")
find_package(glew REQUIRED QUIET PATHS "${EP_PREFIX}")
find_package(OpenCV REQUIRED QUIET PATHS "${EP_PREFIX}")
find_package(gflags REQUIRED PATHS "${EP_PREFIX}")
find_package(glog REQUIRED PATHS "${EP_PREFIX}")
if(WIN32)
set(SuiteSparse_USE_LAPACK_BLAS ON)
endif()
find_package(SuiteSparse REQUIRED PATHS "${EP_PREFIX}")
find_package(Ceres REQUIRED QUIET PATHS "${EP_PREFIX}")
add_definitions(-DGOOGLE_GLOG_DLL_DECL= -DGLEW_STATIC=1 -DFREEGLUT_STATIC=1
-DFREEGLUT_LIB_PRAGMAS=0)
add_subdirectory(code)