Kylin/UnitTest/CMakeLists.txt

48 lines
1.4 KiB
CMake
Raw Normal View History

2023-12-25 18:52:51 +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
2023-12-27 10:29:16 +08:00
DataStructure/BinarySearchTreeTest.cpp
DataStructure/BinaryTreeTest.cpp
DataStructure/CircularLinkedListTest.cpp
DataStructure/DoublyLinkedListTest.cpp
DataStructure/DynamicArrayListTest.cpp
DataStructure/DynamicArrayTest.cpp
DataStructure/GeneralTreeTest.cpp
DataStructure/LinkedListTest.cpp
DataStructure/LinkedQueueTest.cpp
DataStructure/LinkedStackTest.cpp
DataStructure/ListGraphTest.cpp
DataStructure/MatrixGraphTest.cpp
DataStructure/QueueToStackTest.cpp
DataStructure/SmartPointerTest.cpp
DataStructure/StackToQueueTest.cpp
DataStructure/StaticArrayListTest.cpp
DataStructure/StaticArrayTest.cpp
DataStructure/StaticLinkedListTest.cpp
DataStructure/StaticQueueTest.cpp
DataStructure/StaticStackTest.cpp
DataStructure/StringTest.cpp
2023-12-30 22:51:20 +08:00
HttpProxy/BoostUrlTest.cpp
2023-12-27 10:29:16 +08:00
Universal/BoostLogTest.cpp
2024-01-06 00:06:35 +08:00
Universal/DateTimeTest.cpp
Universal/MessageManagerTest.cpp
Universal/SingletonTest.cpp
2023-12-25 18:52:51 +08:00
)
target_compile_definitions(UnitTest
PUBLIC LOG_FILTER_LEVEL=1
)
target_link_libraries(UnitTest
PRIVATE Boost::unit_test_framework
2023-12-27 10:29:16 +08:00
PRIVATE DataStructure
2023-12-30 22:51:20 +08:00
PRIVATE HttpProxy
2023-12-27 10:29:16 +08:00
PRIVATE Universal
2023-12-25 18:52:51 +08:00
)