nextcloud-desktop/test/csync/CMakeLists.txt

31 lines
899 B
Text
Raw Normal View History

project(tests)
2008-02-27 20:56:47 +03:00
set(TORTURE_LIBRARY torture)
2008-02-27 20:56:47 +03:00
include_directories(
2017-08-14 19:49:44 +03:00
${CMAKE_CURRENT_SOURCE_DIR}
2008-02-27 20:56:47 +03:00
${CMAKE_BINARY_DIR}
${CMOCKA_INCLUDE_DIR}
2008-02-27 20:56:47 +03:00
)
include_directories(${CHECK_INCLUDE_DIRS})
2008-02-27 20:56:47 +03:00
# create test library
add_library(${TORTURE_LIBRARY} STATIC torture.c cmdline.c)
target_link_libraries(${TORTURE_LIBRARY} ${CMOCKA_LIBRARIES})
2008-02-27 20:56:47 +03:00
set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} Qt5::Core "${csync_NAME}")
2008-02-27 20:56:47 +03:00
# create tests
# std
add_cmocka_test(check_std_c_alloc std_tests/check_std_c_alloc.c ${TEST_TARGET_LIBRARIES})
add_cmocka_test(check_std_c_jhash std_tests/check_std_c_jhash.c ${TEST_TARGET_LIBRARIES})
add_cmocka_test(check_std_c_str std_tests/check_std_c_str.c ${TEST_TARGET_LIBRARIES})
# vio
add_cmocka_test(check_vio_ext vio_tests/check_vio_ext.cpp ${TEST_TARGET_LIBRARIES})
# encoding
add_cmocka_test(check_encoding_functions encoding_tests/check_encoding.cpp ${TEST_TARGET_LIBRARIES})