ulib/tests/CMakeLists.txt
tqcq 44f0021d30
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (push) Waiting to run
linux-x64-gcc / linux-gcc (push) Waiting to run
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Failing after 57s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 58s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Failing after 1m3s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Failing after 1m11s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Failing after 1m22s
feat add thread
2023-12-27 11:22:39 +08:00

18 lines
475 B
CMake

set(CMAKE_CXX_STANDARD 98)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(ulib_test
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
ulib/system/thread_unittest.cpp
)
target_link_libraries(ulib_test PRIVATE
ulib
gtest
gtest_main)
add_test(NAME ulib_test COMMAND ulib_test)