blob: 2fb51112294dda6f99bf5db0de3f98478313931c (
plain) (
blame)
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
|
# This source code is released into the public domain.
add_library(nihil.util STATIC)
target_link_libraries(nihil.util PRIVATE
nihil.std
nihil.core
nihil.error
nihil.monad
)
target_sources(nihil.util
PUBLIC FILE_SET modules TYPE CXX_MODULES FILES
nihil.util.ccm
capture_stream.ccm
construct.ccm
ctype.ccm
parse_size.ccm
next_word.ccm
save_errno.ccm
skipws.ccm
tabulate.ccm
)
if(NIHIL_TESTS)
enable_testing()
add_executable(nihil.util.test
capture_stream.test.cc
ctype.test.cc
parse_size.test.cc
next_word.test.cc
skipws.test.cc
tabulate.test.cc
)
target_link_libraries(nihil.util.test PRIVATE
nihil.util
Catch2::Catch2WithMain
)
include(CTest)
include(Catch)
catch_discover_tests(nihil.util.test)
endif()
|