########################################################################
# #
-# Setup and install the convenience macros: #
+# Setup and install cmake macros: #
# #
########################################################################
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_invoke_autopilot.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_setup_target.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_query_git_information.cmake
+ ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_add_test.cmake
+ ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_pickup_tests.cmake
)
FILE(COPY ${_macros}
- DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_CMAKE_MACROS_RELDIR}
+ DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/macros
)
INSTALL(FILES ${_macros}
- DESTINATION ${DEAL_II_CMAKE_MACROS_RELDIR}
+ DESTINATION ${DEAL_II_SHARE_RELDIR}/macros
COMPONENT library
)
# Information about the project location
#
-SET(DEAL_II_CMAKE_MACROS_RELDIR "@DEAL_II_CMAKE_MACROS_RELDIR@")
-SET(DEAL_II_SHARE_RELDIR "@DEAL_II_SHARE_RELDIR@")
-SET(DEAL_II_DOCREADME_RELDIR "@DEAL_II_DOCREADME_RELDIR@")
SET(DEAL_II_DOCHTML_RELDIR "@DEAL_II_DOCHTML_RELDIR@")
+SET(DEAL_II_DOCREADME_RELDIR "@DEAL_II_DOCREADME_RELDIR@")
SET(DEAL_II_EXAMPLES_RELDIR "@DEAL_II_EXAMPLES_RELDIR@")
SET(DEAL_II_EXECUTABLE_RELDIR "@DEAL_II_EXECUTABLE_RELDIR@")
SET(DEAL_II_INCLUDE_RELDIR "@DEAL_II_INCLUDE_RELDIR@")
SET(DEAL_II_LIBRARY_RELDIR "@DEAL_II_LIBRARY_RELDIR@")
SET(DEAL_II_PROJECT_CONFIG_RELDIR "@DEAL_II_PROJECT_CONFIG_RELDIR@")
+SET(DEAL_II_SHARE_RELDIR "@DEAL_II_SHARE_RELDIR@")
#
# Determine DEAL_II_PATH from CMAKE_CURRENT_LIST_DIR:
#
FILE(GLOB _macro_files
- "${DEAL_II_PATH}/${DEAL_II_CMAKE_MACROS_RELDIR}/macro_deal_ii*.cmake"
+ "${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/macros/*.cmake"
)
FOREACH(file ${_macro_files})
IF(NOT ${DEAL_II_PACKAGE_NAME}_FIND_QUIETLY)
# Information about the project location
#
-DEAL_II_CMAKE_MACROS_RELDIR = @DEAL_II_CMAKE_MACROS_RELDIR@
DEAL_II_SHARE_RELDIR = @DEAL_II_SHARE_RELDIR@
DEAL_II_DOCREADME_RELDIR = @DEAL_II_DOCREADME_RELDIR@
DEAL_II_DOCHTML_RELDIR = @DEAL_II_DOCHTML_RELDIR@
IF(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
MESSAGE(FATAL_ERROR
- "\nDEAL_II_ADD_TEST can only be called in external test subprojects after "
+ "\nDEAL_II_ADD_TEST can only be called in external (test sub-) projects after "
"the inclusion of deal.IIConfig.cmake. It is not intended for "
"internal use.\n\n"
)
&& echo "${_test_full}: RUN failed. ------ Partial output:"
&& cat ${_test_directory}/failing_output
&& exit 1)
- COMMAND
- ${PERL_EXECUTABLE} -pi ${DEAL_II_SOURCE_DIR}/tests/normalize.pl
- ${_test_directory}/output
+ COMMAND ${PERL_EXECUTABLE}
+ -pi ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/normalize.pl
+ ${_test_directory}/output
WORKING_DIRECTORY
${_test_directory}
DEPENDS
${_target}
- ${DEAL_II_SOURCE_DIR}/tests/normalize.pl
+ ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/normalize.pl
)
ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
COMMAND
-DEXPECT=${_expect}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${CMAKE_CURRENT_BINARY_DIR}/${_target}/interrupt_guard.cc
- -P ${DEAL_II_SOURCE_DIR}/tests/run_test.cmake
+ -P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${_test_directory}
)
SET_TESTS_PROPERTIES(${_test_full} PROPERTIES
OUTPUT_NAME expand_instantiations
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}
)
+
+SET(_scripts
+ ${CMAKE_CURRENT_SOURCE_DIR}/normalize.pl
+ ${CMAKE_CURRENT_SOURCE_DIR}/run_test.cmake
+ )
+FILE(COPY ${_scripts}
+ DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/scripts
+ )
+INSTALL(FILES ${_scripts}
+ DESTINATION ${DEAL_II_SHARE_RELDIR}/scripts
+ COMPONENT library
+ )
# DEAL_II_LIBRARY_RELDIR *)
# DEAL_II_PROJECT_CONFIG_RELDIR *)
# DEAL_II_SHARE_RELDIR *)
-# DEAL_II_CMAKE_MACROS_RELDIR *)
# DEAL_II_DOCREADME_RELDIR *)
# DEAL_II_DOCHTML_RELDIR *)
# DEAL_II_EXAMPLES_RELDIR *)
SET_IF_EMPTY(DEAL_II_LIBRARY_RELDIR "lib${LIB_SUFFIX}")
SET_IF_EMPTY(DEAL_II_PROJECT_CONFIG_RELDIR "${DEAL_II_LIBRARY_RELDIR}/cmake/${DEAL_II_PROJECT_CONFIG_NAME}")
SET_IF_EMPTY(DEAL_II_SHARE_RELDIR "share/${DEAL_II_PACKAGE_NAME}")
-SET_IF_EMPTY(DEAL_II_CMAKE_MACROS_RELDIR "${DEAL_II_SHARE_RELDIR}/cmake")
#
# ... but install the documentation into prominent places:
#
</p>
<ol>
+ <li> Removed: The CMake configuration does not use the variable
+ <code>DEAL_II_CMAKE_MACROS_RELDIR</code> any more. Instead, the fixed
+ location <code>${DEAL_II_SHARE_RELDIR}/macros</code> is used
+ unconditionally
+ <br>
+ (Matthias Maier, 2015/03/26)
+
<li> Changed: The TrilinosWrappers::SparseMatrix::clear_row() function used
to call TrilinosWrappers::SparseMatrix::compress() before doing its work,
but this is neither efficient nor safe. You will now have to do this
DEAL_II_LIBRARY_RELDIR
DEAL_II_PROJECT_CONFIG_RELDIR
DEAL_II_SHARE_RELDIR
-DEAL_II_CMAKE_MACROS_RELDIR
DEAL_II_DOCREADME_RELDIR
DEAL_II_DOCHTML_RELDIR
DEAL_II_EXAMPLES_RELDIR
#
DEAL_II_PATH
-DEAL_II_CMAKE_MACROS_RELDIR
DEAL_II_SHARE_RELDIR
DEAL_II_DOCREADME_RELDIR
DEAL_II_DOCHTML_RELDIR
# "Library suffix for the release library"
# )
#
-# SET(DEAL_II_CMAKE_MACROS_RELDIR "cmake/macros" CACHE STRING
-# "Relative installation directory for macros"
-# )
-#
# SET(DEAL_II_DOCHTML_RELDIR "doc" CACHE STRING
# "Relative installation directory for html documentation"
# )
ADD_TEST(NAME ${_test}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target} -DTEST=${_test}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR} -DEXPECT=CONFIGURE
- -P ${DEAL_II_SOURCE_DIR}/tests/run_test.cmake
+ -P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
SET_TESTS_PROPERTIES(${_test} PROPERTIES
## ---------------------------------------------------------------------
##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.build -DTEST=${_test}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${CMAKE_CURRENT_BINARY_DIR}/${_target}_interrupt_guard.cc
- -P ${DEAL_II_SOURCE_DIR}/tests/run_test.cmake
+ -P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
SET_TESTS_PROPERTIES(${_test} PROPERTIES
## ---------------------------------------------------------------------
##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target} -DTEST=${_test}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${_step_dir}/interrupt_guard
- -P ${DEAL_II_SOURCE_DIR}/tests/run_test.cmake
+ -P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
SET_TESTS_PROPERTIES(${_test} PROPERTIES
## ---------------------------------------------------------------------
##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
ADD_TEST(NAME ${_target}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.run -DTEST=${_target}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
- -P ${CMAKE_SOURCE_DIR}/tests/run_test.cmake
+ -P ${CMAKE_SOURCE_DIR}/cmake/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
SET_TESTS_PROPERTIES(${_target} PROPERTIES LABEL "sanity checks")
SET(${_var} ${${_var}})
ENDFOREACH()
-
#
# Load all macros:
#
INCLUDE(${_file})
ENDFOREACH()
-INCLUDE(${DEAL_II_SOURCE_DIR}/tests/macro_add_test.cmake)
-INCLUDE(${DEAL_II_SOURCE_DIR}/tests/macro_pickup_tests.cmake)
-
#
# Pick up values from environment:
#