This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
add_executable(noto-test
|
||||
test.cpp
|
||||
)
|
||||
find_package(Threads REQUIRED)
|
||||
target_include_directories(noto-test PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
target_link_libraries(noto-test PRIVATE
|
||||
noto::noto
|
||||
Threads::Threads
|
||||
)
|
||||
target_compile_features(noto-test PRIVATE cxx_std_23)
|
||||
target_compile_definitions(noto-test PRIVATE
|
||||
$<$<CONFIG:Debug>:NOTO_EXPECT_DEBUG_ASSERTS>
|
||||
$<$<NOT:$<CONFIG:Debug>>:NOTO_EXPECT_NDEBUG>
|
||||
)
|
||||
add_test(NAME noto COMMAND noto-test)
|
||||
set_tests_properties(noto PROPERTIES TIMEOUT 20)
|
||||
add_custom_target(check
|
||||
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
--test-dir ${CMAKE_BINARY_DIR}
|
||||
-R ^noto$
|
||||
--output-on-failure
|
||||
--timeout 20
|
||||
USES_TERMINAL
|
||||
)
|
||||
Reference in New Issue
Block a user