mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-31 00:09:53 +02:00
Breakup building and testing
This commit is contained in:
parent
f206456cdd
commit
e9dc3c650b
2 changed files with 4 additions and 5 deletions
|
@ -124,15 +124,14 @@ macro(SETUP_HIFI_TESTCASE)
|
||||||
# This target will also build + run the other test targets using ctest when built.
|
# This target will also build + run the other test targets using ctest when built.
|
||||||
|
|
||||||
add_custom_target(${TEST_TARGET}
|
add_custom_target(${TEST_TARGET}
|
||||||
COMMAND ctest .
|
|
||||||
SOURCES ${TEST_PROJ_SRC_FILES} # display source files under the testcase target
|
SOURCES ${TEST_PROJ_SRC_FILES} # display source files under the testcase target
|
||||||
DEPENDS ${${TEST_PROJ_NAME}_TARGETS})
|
DEPENDS ${${TEST_PROJ_NAME}_TARGETS})
|
||||||
|
|
||||||
set_target_properties(${TEST_TARGET} PROPERTIES
|
set_target_properties(${TEST_TARGET} PROPERTIES
|
||||||
|
FOLDER "Tests"
|
||||||
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
||||||
EXCLUDE_FROM_ALL TRUE)
|
EXCLUDE_FROM_ALL TRUE)
|
||||||
|
|
||||||
set_target_properties(${TEST_TARGET} PROPERTIES FOLDER "Tests")
|
|
||||||
|
|
||||||
list (APPEND ALL_TEST_TARGETS ${TEST_TARGET})
|
list (APPEND ALL_TEST_TARGETS ${TEST_TARGET})
|
||||||
set(ALL_TEST_TARGETS "${ALL_TEST_TARGETS}" PARENT_SCOPE)
|
set(ALL_TEST_TARGETS "${ALL_TEST_TARGETS}" PARENT_SCOPE)
|
||||||
else ()
|
else ()
|
||||||
|
|
|
@ -27,9 +27,9 @@ set_target_properties("test-extensions" PROPERTIES FOLDER "Tests")
|
||||||
# set (ALL_TEST_TARGETS "${ALL_TEST_TARGETS}" PARENT_SCOPE) # copies this back to parent scope
|
# set (ALL_TEST_TARGETS "${ALL_TEST_TARGETS}" PARENT_SCOPE) # copies this back to parent scope
|
||||||
#
|
#
|
||||||
add_custom_target("all-tests"
|
add_custom_target("all-tests"
|
||||||
COMMAND ctest .
|
|
||||||
DEPENDS "${ALL_TEST_TARGETS}")
|
DEPENDS "${ALL_TEST_TARGETS}")
|
||||||
set_target_properties("all-tests" PROPERTIES FOLDER "hidden/test-targets")
|
|
||||||
set_target_properties("all-tests" PROPERTIES
|
set_target_properties("all-tests" PROPERTIES
|
||||||
|
FOLDER "hidden/test-targets"
|
||||||
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
||||||
EXCLUDE_FROM_ALL TRUE)
|
EXCLUDE_FROM_ALL TRUE)
|
||||||
|
|
Loading…
Reference in a new issue