-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (25 loc) · 958 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
project(falcon.cxx)
cmake_minimum_required(VERSION 2.8)
option(ENABLE_CXX_VERSION "enable -std=$version if clang or gcc." c++11)
if((CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR CMAKE_COMPILER_IS_GNUCXX)
include(CMakeDefinitions.txt)
if (ENABLE_CXX_VERSION)
add_definitions(-std=${ENABLE_CXX_VERSION})
endif()
endif()
# if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -iquote ${PROJECT_SOURCE_DIR}/")
# endif()
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
include_directories(include/)
# aux_source_directory(. SRC_LIST)
# file(GLOB headers_SRC "*.hpp")
# Tests
function(add_executable_test name)
add_executable(${name}_test test/${name}_test.cpp)
add_test(all_tests ${name}_test)
endfunction()
add_executable_test(cxx)
enable_testing()
# install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/falcon.cxx DESTINATION .)