ulib/tests/CMakeLists.txt

24 lines
694 B
CMake
Raw Normal View History

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
2023-12-05 15:52:30 +08:00
add_executable(ulib_test
2023-12-16 01:34:42 +08:00
ulib/base/types_unittest.cpp
ulib/log/log_unittest.cpp
ulib/concorrency/mutex_unittest.cpp
ulib/concorrency/event_unittest.cpp
ulib/concorrency/countdown_latch_unittest.cpp
2023-12-27 11:22:39 +08:00
ulib/system/thread_unittest.cpp
2023-12-27 19:23:05 +08:00
ulib/system/thread_pool_unittest.cpp
2023-12-28 11:45:07 +08:00
ulib/system/timer_unittest.cpp
2024-01-05 09:42:29 +08:00
3party/inja/inja_unittest.cpp
2023-12-29 11:04:52 +08:00
ulib/utils/defer_unittest.cpp
2023-12-11 12:57:02 +08:00
)
2023-12-05 15:52:30 +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)