30 lines
569 B
Text
30 lines
569 B
Text
|
add_executable(TestSimpleConf)
|
||
|
|
||
|
target_compile_features(TestSimpleConf
|
||
|
PRIVATE
|
||
|
cxx_std_20
|
||
|
)
|
||
|
|
||
|
target_link_libraries(TestSimpleConf
|
||
|
PRIVATE
|
||
|
Garbage
|
||
|
Catch2::Catch2WithMain
|
||
|
)
|
||
|
|
||
|
target_sources(TestSimpleConf
|
||
|
PRIVATE
|
||
|
Comments.cpp
|
||
|
Conversions.cpp
|
||
|
EmptyConfigs.cpp
|
||
|
Optionality.cpp
|
||
|
Parsing.cpp
|
||
|
WhitespaceBehaviour.cpp
|
||
|
)
|
||
|
|
||
|
add_custom_command(
|
||
|
TARGET TestSimpleConf POST_BUILD
|
||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/TestConfigs
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/TestConfigs
|
||
|
)
|