forked from Danvil/dasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (40 loc) · 1.47 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
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 2.6)
option(DASP_HAS_CANDY "Use DanvilSimpleEngine to enable 3D rendering" OFF)
option(DASP_HAS_OPENNI "Use OpenNI for Kinect live mode" OFF)
option(USE_SOLVER_ARPACK "Use ARPACK for spectral solving" OFF)
option(USE_SOLVER_MAGMA "Use CUDA magma for spectral solving" OFF)
option(USE_SOLVER_IETL "Use IETL sparse eigensolver" OFF)
set(OPENNI_INCLUDE_DIR "/home/david/Programs/RGBD/OpenNI/Include" CACHE STRING "OpenNI include directory")
set(EIGEN3_INCLUDE_DIR "/usr/local/include/eigen3" CACHE STRING "Eigen3 include directory")
set(SLIMAGE_DIR "/home/david/git/slimage" CACHE STRING "Slimage include directory")
set(CANDY_DIR "/home/david/git/candy" CACHE STRING "Danvil candy 3D engine main directory")
add_definitions(-std=c++0x -DBOOST_DISABLE_ASSERTS)
if (DASP_HAS_CANDY)
link_directories(/home/david/build/candy/libcandy) # FIXME
endif (DASP_HAS_CANDY)
if (USE_SOLVER_MAGMA)
link_directories(
/usr/local/cuda-5.0/lib64
/home/david/Downloads/magma-1.3.0/lib
)
endif (USE_SOLVER_MAGMA)
include_directories(
${EIGEN3_INCLUDE_DIR}
${SLIMAGE_DIR}/include
.
)
project(dasp)
add_subdirectory(density)
add_subdirectory(density_cmd)
add_subdirectory(pds)
add_subdirectory(pds_cmd)
add_subdirectory(asp)
add_subdirectory(asp_cmd)
add_subdirectory(graphseg)
add_subdirectory(rgbd)
add_subdirectory(libdasp)
add_subdirectory(dasp_cmd)
add_subdirectory(dasp_eval)
add_subdirectory(dasp_gui)
add_subdirectory(dasp_density)
add_subdirectory(normals_cmd)