This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
add_executable(ligo-test
|
||||
test.cpp
|
||||
)
|
||||
find_package(Threads REQUIRED)
|
||||
target_include_directories(ligo-test PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
target_link_libraries(ligo-test PRIVATE
|
||||
ligo::ligo
|
||||
Threads::Threads
|
||||
)
|
||||
target_compile_features(ligo-test PRIVATE cxx_std_23)
|
||||
target_compile_definitions(ligo-test PRIVATE
|
||||
$<$<CONFIG:Debug>:LIGO_EXPECT_DEBUG_ASSERTS>
|
||||
$<$<NOT:$<CONFIG:Debug>>:LIGO_EXPECT_NDEBUG>
|
||||
)
|
||||
add_test(NAME ligo COMMAND ligo-test)
|
||||
set_tests_properties(ligo PROPERTIES TIMEOUT 60)
|
||||
add_custom_target(check
|
||||
COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
--test-dir ${CMAKE_BINARY_DIR}
|
||||
-R ^ligo$
|
||||
--output-on-failure
|
||||
--timeout 60
|
||||
USES_TERMINAL
|
||||
)
|
||||
+2256
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#define BOOST_TEST_MODULE ligo
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
Reference in New Issue
Block a user