2023-12-05 15:46:14 +08:00
|
|
|
set(CMAKE_CXX_STANDARD 98)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
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-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)
|