2024-01-22 11:34:21 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
2024-01-05 10:19:20 +08:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
2023-12-05 15:46:14 +08:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2024-01-05 10:19:20 +08:00
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
2023-12-05 15:46:14 +08:00
|
|
|
|
2024-01-12 14:05:03 +08:00
|
|
|
add_executable(
|
|
|
|
ulib_test
|
2024-01-19 12:51:24 +08:00
|
|
|
3party/eventbus/eventbus_unittest.cpp
|
2024-01-26 11:22:30 +08:00
|
|
|
3party/nonstd/any_unittest.cpp
|
|
|
|
3party/nonstd/lazy_unittest.cpp
|
2024-01-22 11:34:21 +08:00
|
|
|
3party/nonstd/optional_unittest.cpp
|
2024-01-12 14:05:03 +08:00
|
|
|
3party/sqlpp11/sqlpp11_unittest.cpp
|
2024-01-22 11:23:03 +08:00
|
|
|
ulib/base/location_unittest.cpp
|
2024-01-12 14:05:03 +08:00
|
|
|
ulib/base/types_unittest.cpp
|
2024-01-22 11:34:21 +08:00
|
|
|
ulib/concorrency/barrier_unittest.cpp
|
2024-01-12 14:05:03 +08:00
|
|
|
ulib/concorrency/countdown_latch_unittest.cpp
|
2024-01-21 12:01:15 +08:00
|
|
|
ulib/concorrency/event_unittest.cpp
|
|
|
|
ulib/concorrency/mutex_unittest.cpp
|
|
|
|
ulib/log/log_unittest.cpp
|
2024-01-12 14:05:03 +08:00
|
|
|
ulib/system/thread_pool_unittest.cpp
|
2024-01-21 12:01:15 +08:00
|
|
|
ulib/system/thread_unittest.cpp
|
2024-01-12 14:05:03 +08:00
|
|
|
ulib/system/timer_unittest.cpp
|
|
|
|
ulib/utils/defer_unittest.cpp
|
2024-01-22 11:34:21 +08:00
|
|
|
ulib/utils/fsm_unittest.cpp
|
2024-01-26 11:22:30 +08:00
|
|
|
ulib/utils/utils_unittest.cpp)
|
2024-01-12 14:05:03 +08:00
|
|
|
target_link_libraries(ulib_test PRIVATE ulib gtest gtest_main)
|
2023-12-05 15:46:14 +08:00
|
|
|
|
|
|
|
add_test(NAME ulib_test COMMAND ulib_test)
|