forked from efficient/SuRF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (26 loc) · 908 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
cmake_minimum_required (VERSION 2.6)
project (SuRF)
message(STATUS "Configuring..." ${CMAKE_PROJECT_NAME})
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -Wall -pthread -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -Wall -Werror -pthread -std=c++11")
option(COVERALLS "Generate coveralls data" OFF)
if (COVERALLS)
include("${CMAKE_CURRENT_SOURCE_DIR}/CodeCoverage.cmake")
append_coverage_compiler_flags()
set(COVERAGE_EXCLUDES 'ARF/*' 'bench/*' 'test/*' '/usr/*' '/lib/*')
setup_target_for_coverage(
NAME coverage
EXECUTABLE make test
)
else()
add_definitions(-DNDEBUG)
endif()
enable_testing()
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
add_subdirectory(test)
add_subdirectory(bench)
#include_directories("${CMAKE_CURRENT_SOURCE_DIR}/ARF/include")
#add_subdirectory(ARF)