-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
92 lines (80 loc) · 4.64 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
cmake_minimum_required(VERSION 3.9)
project(meta)
set(META_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/drop_helper.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/flatten_helper.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/foldl_helper.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/index_helper.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/rotate_helper.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/details/pow2.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/all.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/any.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/append.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/at.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/concat.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/cons.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/drop.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/drop_at.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/filter.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/flatten.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/foldl.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/from_list.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/head.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/index.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/init.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/insert_at.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/join.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/last.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/list.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/map.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/minimum.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/none.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/repeat.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/replace.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/replicate.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/reverse.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/rotate.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/sequence.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/size.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/split_at.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/tail.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/take.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/unordered_map.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/unzip.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/sequence/zip.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/detection/detection.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/allow_copy_move_operations.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/enum_bitwise_ops.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/integral_constants.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/meta_functions.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/overload_set.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/pair.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/priority_tag.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/rebind.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/recursive_adaptor.hpp
${CMAKE_CURRENT_SOURCE_DIR}/include/meta/utils/tuple_for_each.hpp
)
add_library(doom_meta INTERFACE)
add_library(doom::meta ALIAS doom_meta)
target_sources(doom_meta INTERFACE ${META_SOURCES})
target_include_directories(doom_meta INTERFACE include)
option(META_BUILD_TESTS "Build tests of the meta library" OFF)
if (META_BUILD_TESTS)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
find_package(GTest REQUIRED)
add_executable(doom_meta-tests
tests/tests-type_list.cpp
tests/tests-detection.cpp
tests/tests-enum_bitwise_ops.cpp
tests/tests-integral_constants.cpp
tests/tests-meta_functions.cpp
tests/tests-type_map.cpp
tests/tests-overload_set.cpp
tests/tests-priority_tag.cpp
tests/tests-rebind.cpp
tests/tests-recursive_adaptor.cpp
tests/tests-tuple_for_each.cpp
)
target_link_libraries(doom_meta-tests doom::meta GTest::GTest GTest::Main)
endif ()