CMakeLists.txt 774 字节
Newer Older
Z
zhangjinchao01 已提交
1 2
add_simple_unittest(test_Thread)
add_simple_unittest(test_StringUtils)
Y
Yu Yang 已提交
3
add_simple_unittest(test_CustomStackTrace)
L
liaogang 已提交
4
add_simple_unittest(test_ThreadBarrier)
5
add_simple_unittest(test_SpinLock)
L
liaogang 已提交
6
add_simple_unittest(test_SIMDFlags)
Y
Yu Yang 已提交
7 8 9 10 11 12

add_executable(
    test_CustomStackTracePrint
    test_CustomStackTracePrint.cpp
)
link_paddle_exe(test_CustomStackTracePrint)
13 14 15 16 17
if(NOT APPLE)
    add_test(NAME test_CustomStackTracePrint
        COMMAND ${PROJ_ROOT}/paddle/utils/tests/test_CustomStackTracePrint.sh
        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
Y
Yu Yang 已提交
18 19 20 21 22 23 24 25

add_library(test_class_registrar_lib STATIC
  test_ClassRegistrarLib.cpp
  test_ClassRegistrarGlobals.cpp)

add_simple_unittest(test_ClassRegistrar)
target_link_libraries(test_ClassRegistrar
  test_class_registrar_lib)