Bsongis/travis datacopy (#7098)

datacopy.cpp now generated during build
This commit is contained in:
Bertrand Songis
2019-11-19 16:17:19 +01:00
committed by GitHub
parent 15068f615f
commit 7099e652cb
5 changed files with 181 additions and 184 deletions
+12 -6
View File
@@ -232,15 +232,21 @@ add_custom_target(tests-radio
if(Qt5Core_FOUND AND NOT DISABLE_COMPANION)
add_subdirectory(${COMPANION_SRC_DIRECTORY})
add_custom_target(gtests DEPENDS gtests-radio gtests-companion)
add_custom_target(tests-companion
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gtests-companion
DEPENDS gtests-companion
)
add_custom_target(gtests
DEPENDS gtests-radio gtests-companion
)
add_custom_target(tests
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gtests-radio && ${CMAKE_CURRENT_BINARY_DIR}/gtests-companion
DEPENDS gtests
DEPENDS tests-radio tests-companion
)
else()
add_custom_target(gtests DEPENDS gtests-radio)
add_custom_target(gtests
DEPENDS gtests-radio
)
add_custom_target(tests
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gtests-radio
DEPENDS gtests
DEPENDS tests-radio
)
endif()