ADD_SUBDIRECTORY(matrix_free)
ADD_SUBDIRECTORY(meshworker)
+# A custom target to build the library:
+ADD_CUSTOM_TARGET(build_library)
+
FOREACH(build ${DEAL_II_BUILD_TYPES})
STRING(TOLOWER ${build} build_lowercase)
${deal_ii_objects_${build_lowercase}}
)
+ ADD_DEPENDENCIES(build_library ${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX})
ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX})
SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
)
ADD_DEPENDENCIES(setup_tests setup_tests_${_category})
- # depend on a valid build directory:
- ADD_DEPENDENCIES(setup_tests_${_category} setup_build_dir)
+ # depend on a compiled library:
+ ADD_DEPENDENCIES(setup_tests_${_category} build_library)
ADD_CUSTOM_TARGET(regen_tests_${_category}
COMMAND [ ! -d ${_category} ] || ${CMAKE_COMMAND}
COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
+ADD_DEPENDENCIES(test build_library)
MESSAGE(STATUS "Setup quick_tests in ${_mybuild} mode - Done")
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams