src/tests/CMakeLists.txt: remove test sources (link against testlib instead)

This commit is contained in:
Christian Zimmermann 2022-09-18 17:24:19 +02:00
parent 47b2f3ee31
commit 59267fb040

View file

@ -12,7 +12,7 @@ add_library(test_lib STATIC ${test_SOURCES})
#target_link_libraries(iutest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cnorxz)
#add_test(NAME iutest COMMAND iutest)
add_executable(rutest range_unit_test.cc ${test_SOURCES})
add_executable(rutest range_unit_test.cc)
add_dependencies(rutest cnorxz)
target_link_libraries(rutest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cnorxz test_lib)
add_test(NAME rutest COMMAND dautest)
@ -27,7 +27,7 @@ add_test(NAME rutest COMMAND dautest)
#target_link_libraries(mautest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cnorxz)
#add_test(NAME mautest COMMAND mautest)
add_executable(dautest darray_unit_test.cc ${test_SOURCES})
add_executable(dautest darray_unit_test.cc)
add_dependencies(dautest cnorxz)
target_link_libraries(dautest ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cnorxz test_lib)
add_test(NAME dautest COMMAND dautest)