Kylin/UnitTest/CMakeLists.txt

42 lines
1.3 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/CircularDoublyLinkedListTest.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
Universal/BoostLogTest.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
PRIVATE Universal
2023-12-25 18:52:51 +08:00
)