X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftests%2FCMakeLists.txt;h=f67eb47e838db43bce7d6bf5162c088504de20be;hp=aa4c95eee01a6f46d30f90c6ac19fc4ee5e50d3b;hb=13af7e459ddcc361e62927972f493ca657592874;hpb=ce18438e729e6c11eebd3a5fb73f4039fdda33a0 diff --git a/source/tests/CMakeLists.txt b/source/tests/CMakeLists.txt index aa4c95e..f67eb47 100644 --- a/source/tests/CMakeLists.txt +++ b/source/tests/CMakeLists.txt @@ -1,9 +1,11 @@ +set(TARGET_NAME "xestiaab_test") + set(FILE_LIST xestiaab_test.cpp xestiaab_carddav.cpp classes/FakeConnectionObject.cpp classes/FakeConnectionObject.h) -add_executable(xestiaab_test +add_executable(${TARGET_NAME} ${FILE_LIST}) include_directories(..) @@ -26,6 +28,9 @@ target_link_libraries(xestiaab_test vcard widgets) -add_custom_command(TARGET xestiaab_test POST_BUILD +add_custom_command(TARGET ${TARGET_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/tests/files/* ${CMAKE_BINARY_DIR}/tests/. ) + +gtest_add_tests(TARGET ${TARGET_NAME} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests/files) \ No newline at end of file