# Never build unit tests as static binaries, otherwise we'll end up with
# ~300MB per unit test.
if(ENABLE_UNIT_TESTING)
+ if(NOT ENABLE_SHARED)
+ message(WARNING "Disabling static build since unit testing is enabled.")
+ endif()
set(ENABLE_SHARED ON)
endif()
# > system tests
add_custom_target(build-tests)
+# Since examples are also built and run for testing, we have to add examples
+# to the build test dependencies.
+add_dependencies(build-tests examples)
# Note: Do not add custom targets for running tests (regress, systemtests,
# units) as dependencies to other run targets. This will result in executing