-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.15 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
45
46
cmake_minimum_required(VERSION 2.6.0)
# pull in the pods macros. See cmake/pods.cmake for documentation
set(POD_NAME libfovis)
include(cmake/pods.cmake)
# Try to use pkg-config to find Eigen3. If we don't have pkg-config, then
# just assume that Eigen3 is in the include path.
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(EIGEN REQUIRED eigen3)
endif()
# Do we want to use SSE?
option(USE_SSE "Enables SSE support" ON)
if(USE_SSE)
set(USE_SSE_MESSAGE "Enabled")
add_definitions(-DFOVIS_USE_SSE)
else()
set(USE_SSE_MESSAGE "Disabled")
endif()
# build the main library
add_subdirectory(libfovis)
add_subdirectory(testers)
add_subdirectory(examples)
message("
Configuration (fovis):
libfovis: Enabled
SSE Support: ${USE_SSE_MESSAGE}
OpenNI example: ${OPENNI_EXAMPLE_MESSAGE}
libfreenct example: ${LIBFREENECT_EXAMPLE_MESSAGE}
TUM-RGBD example: ${TUM_RGBD_MESSAGE}
")
if(NOT PKG_CONFIG_FOUND)
message("Couldn't find pkg-config. Hoping that eigen3 is in the include path...")
message("If you get compile errors related to Eigen, try setting CMAKE_CXX_FLAGS")
message("")
endif()