build: (fixes #789) add examples as dependencies of example-as-test suites

This commit is contained in:
Gabriel Ferreira
2022-10-25 10:19:01 -03:00
parent 01a2d7786a
commit 53f2c381dc
3 changed files with 43 additions and 12 deletions

View File

@@ -30,6 +30,7 @@ if(${ENABLE_TESTS} AND (test IN_LIST libs_to_build))
set_runtime_outputdirectory(
test-runner ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/utils/ ""
)
add_dependencies(test-runner test-runner-examples-as-tests)
add_dependencies(all-test-targets test-runner)
endif()