48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
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
|
|
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
|
|
|
|
HttpProxy/BoostUrlTest.cpp
|
|
|
|
Universal/BoostLogTest.cpp
|
|
Universal/DateTimeTest.cpp
|
|
Universal/MessageManagerTest.cpp
|
|
Universal/SingletonTest.cpp
|
|
)
|
|
|
|
target_compile_definitions(UnitTest
|
|
PUBLIC LOG_FILTER_LEVEL=1
|
|
)
|
|
|
|
target_link_libraries(UnitTest
|
|
PRIVATE Boost::unit_test_framework
|
|
PRIVATE DataStructure
|
|
PRIVATE HttpProxy
|
|
PRIVATE Universal
|
|
)
|