-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (32 loc) · 1.28 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
cmake_minimum_required(VERSION 2.8)
include(CheckIncludeFileCXX)
# set(CMAKE_BUILD_TYPE Release)
project(typeutils)
set (MODULE typeutils)
set (EXECUTABLE_OUTPUT_PATH ./)
set(CMAKE_BUILD_TYPE_INIT Debug)
get_filename_component(THIRDPARTY ../ ABSOLUTE)
message(STATUS "Thirdparty:" ${THIRDPARTY})
check_include_file_cxx(cxxabi.h HAS_CXXABI_H)
if (HAS_CXXABI_H)
add_definitions(-DHAS_CXXABI_H)
endif()
if(WIN32)
# C4127: use if constexpr
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4819 /wd4458 /wd4127")
elseif(WIN32 OR UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif()
if(CMAKE_SIZEOF_VOIDP EQUAL 8)
set(PLATFORM 64)
endif()
include_directories("include")
add_executable(recurse test/recurse.cpp include/aggregate.hpp)
add_executable(at test/at.cpp include/at.hpp)
add_executable(lu test/lu.cpp include/lookup.hpp include/aggregate.hpp)
add_executable(strings test/strings.cpp include/str.hpp)
add_executable(flatten test/flatten.cpp include/aggregate.hpp)
add_executable(map test/map.cpp include/lookup.hpp include/aggregate.hpp include/str.hpp)
add_executable(fold test/fold.cpp include/aggregate.hpp)
add_executable(index test/index.cpp include/aggregate.hpp)
add_executable(tet test/test.cpp include/lookup.hpp include/aggregate.hpp include/str.hpp)