Older/UnitTest/CMakeLists.txt
luocai 889faa4404
All checks were successful
Deploy / Build (push) Successful in 6m54s
use dbo, not test.
2024-11-27 19:23:06 +08:00

20 lines
449 B
CMake

find_package(Boost REQUIRED COMPONENTS unit_test_framework)
# --detect_memory_leak=0 --run_test=MarkdownParserTest,ProcessUtilityTest
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(UnitTest main.cpp
DatabaseTest.cpp
)
target_compile_definitions(UnitTest
PRIVATE BOOST_TEST_NO_MAIN
PUBLIC LOG_FILTER_LEVEL=1
)
target_link_libraries(UnitTest
PRIVATE Boost::unit_test_framework
PRIVATE Database
)