Older/UnitTest/CMakeLists.txt

23 lines
498 B
CMake
Raw Normal View History

2023-12-30 01:19:36 +08:00
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
2024-12-24 23:46:20 +08:00
MailTest.cpp
2023-12-30 01:19:36 +08:00
)
target_compile_definitions(UnitTest
2024-11-27 19:23:06 +08:00
PRIVATE BOOST_TEST_NO_MAIN
2023-12-30 01:19:36 +08:00
PUBLIC LOG_FILTER_LEVEL=1
)
target_link_libraries(UnitTest
PRIVATE Boost::unit_test_framework
PRIVATE Database
)
2025-01-12 00:46:14 +08:00
add_subdirectory(WebRTCClient)