-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsources.cmake
65 lines (55 loc) · 1.58 KB
/
sources.cmake
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
dplx_target_sources(concrete
TEST_TARGET concrete-tests
MODE SMART_HEADER_ONLY MERGED_LAYOUT
BASE_DIR dplx
PUBLIC
cncr/bit
cncr/concepts
cncr/config
cncr/data_defined_status_domain
cncr/detail/workaround
cncr/disappointment
cncr/intrusive_ptr
cncr/math_supplement
cncr/misc
cncr/mp_lite
cncr/pack_utils
cncr/tag_invoke
cncr/type_utils
cncr/utils
cncr/uuid
make
overloaded
scope_guard
)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/generated/src/dplx/cncr/detail)
configure_file(tools/config.hpp.in ${CMAKE_CURRENT_BINARY_DIR}/generated/src/dplx/cncr/detail/config.hpp @ONLY)
target_sources(concrete PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/generated/src/dplx/cncr/detail/config.hpp>)
dplx_target_sources(concrete
MODE VERBATIM
BASE_DIR dplx
PRIVATE
cncr/uuid.fmt.hpp
cncr/uuid.rng.hpp
cncr/windows-proper.h
cncr/workaround.h
predef/workaround.h
)
target_include_directories(concrete INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/external/predef/include>)
if (BUILD_TESTING)
dplx_target_sources(concrete-tests
MODE VERBATIM
BASE_DIR cncr_tests
PRIVATE
range_generator.hpp
test_utils.hpp
)
dplx_target_sources(concrete-tests
MODE VERBATIM
BASE_DIR dplx
PRIVATE
cncr/windows-proper.test.cpp
cncr/workaround.test.cpp
predef/workaround.test.cpp
)
endif ()