File: CMakeLists.txt

package info (click to toggle)
libkdtree++ 0.7.1+git20101123-4
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 824 kB
  • ctags: 559
  • sloc: cpp: 2,064; sh: 623; python: 543; makefile: 123
file content (38 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (2)
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
project (libkdtree CXX)
cmake_minimum_required (VERSION 2.6.0)
enable_testing()

option (BUILD_PYTHON_BINDINGS "Build Python bindings (requires SWIG)")

if (WIN32)

   # Maximum warning level
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")

   # Be strict about warnings... make them errors
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")

   # Detect 64-bit portability issues
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wp64")

else (WIN32)

   # Maximum warning level
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

   # turn on debugging
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

endif (WIN32)

if (BUILD_PYTHON_BINDINGS)
   add_subdirectory (python-bindings)
endif (BUILD_PYTHON_BINDINGS)

include_directories (${PROJECT_SOURCE_DIR})

add_subdirectory(examples)

file (GLOB KDTREE_HEADERS kdtree++/*.hpp)
install (FILES ${KDTREE_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/kdtree++)