forked from gadomski/figtree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (37 loc) · 884 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Setup
#
cmake_minimum_required(VERSION 2.8.7)
project(figtree)
set(CMAKE_MACOSX_RPATH ON)
#
# Options
#
option(BUILD_SHARED_LIBS "Create shared libraries" ON)
option(WITH_ANN "Build figree with ANN support" ON)
option(WITH_SAMPLES "Build figtree with samples" OFF)
option(WITH_TESTS "Build figtree with tests" OFF)
#
# Targets
#
set(FIGTREE_TARGET_LIB figtree)
set(FIGTREE_TARGET_TEST figtree-test)
set(FIGTREE_TARGET_SAMPLE figtree-sample)
set(ANN_TARGET_LIB ann_figtree_version)
#
# Subdirectories
#
if (WITH_ANN)
add_subdirectory(external)
include_directories("${CMAKE_SOURCE_DIR}/external/ann_1.1.1/include")
else (WITH_ANN)
add_definitions(-DFIGTREE_NO_ANN)
endif (WITH_ANN)
add_subdirectory(include)
add_subdirectory(src)
if (WITH_SAMPLES)
add_subdirectory(samples)
endif (WITH_SAMPLES)
if (WITH_TESTS)
add_subdirectory(test)
endif (WITH_TESTS)