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
|
2024-10-29 21:51:37 +08:00
|
|
|
BoostUrlTest.cpp
|
|
|
|
Nng.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
|
|
|
|
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
|
2024-09-15 16:15:26 +08:00
|
|
|
Universal/PromiseTest.cpp
|
2024-01-06 00:06:35 +08:00
|
|
|
Universal/SingletonTest.cpp
|
2023-12-25 18:52:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(UnitTest
|
2024-09-15 23:39:23 +08:00
|
|
|
PUBLIC LOG_FILTER_LEVEL=2
|
2023-12-25 18:52:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2024-10-29 21:51:37 +08:00
|
|
|
PRIVATE Nng
|
2023-12-25 18:52:51 +08:00
|
|
|
)
|