]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanup
authorMatthias Maier <tamiko@43-1.org>
Thu, 26 Mar 2015 17:15:45 +0000 (18:15 +0100)
committerMatthias Maier <tamiko@43-1.org>
Thu, 26 Mar 2015 18:08:47 +0000 (19:08 +0100)
cmake/macros/macro_deal_ii_pickup_tests.cmake
tests/all-headers/CMakeLists.txt
tests/build_tests/CMakeLists.txt
tests/slepc/CMakeLists.txt

index 397661f90ea6838c1179541f4858b91ed4a6454d..0d7d3c9717410ffa8772c05440af5978075e3097 100644 (file)
@@ -14,7 +14,8 @@
 ## ---------------------------------------------------------------------
 
 #
-# A macro to set up testing and pick up all tests in a test subdirectory.
+# A macro to set up testing and pick up all tests in the current
+# subdirectory.
 #
 # If TEST_PICKUP_REGEX is set, only tests matching the regex will be
 # processed.
 # command line:
 #
 #     TEST_DIFF
+#       - specifying the executable and command line of the diff command to
+#         use
+#
+#     TEST_LIBRARIES
+#     TEST_LIBRARIES_DEBUG
+#     TEST_LIBRARIES_RELEASE
+#       - specifying additional libraries (and targets) to link against.
+#
 #     TEST_TIME_LIMIT
-#     TEST_PICKUP_REGEX
+#       - specifying the maximal wall clock time in seconds a test is
+#         allowed to run
 #
 # Usage:
 #     DEAL_II_PICKUP_TESTS()
 
 
 #
-# Used in DEAL_II_PICKUP_TESTS
+# Two very small macros that are used below:
 #
+
 MACRO(SET_IF_EMPTY _variable)
   IF("${${_variable}}" STREQUAL "")
     SET(${_variable} ${ARGN})
   ENDIF()
 ENDMACRO()
 
-#
-# Used in DEAL_II_ADD_TEST
-#
 MACRO(ITEM_MATCHES _var _regex)
   SET(${_var})
   FOREACH (_item ${ARGN})
@@ -65,11 +73,6 @@ MACRO(DEAL_II_PICKUP_TESTS)
       )
   ENDIF()
 
-  IF(NOT DEAL_II_TARGET_CONFIG_INCLUDED)
-    INCLUDE(${DEAL_II_TARGET_CONFIG})
-    SET(DEAL_II_TARGET_CONFIG_INCLUDED TRUE)
-  ENDIF()
-
   #
   # We need perl:
   #
index 08533b7180dca7016508d0f50c366a0a8964a8c0..3d29a9bd4f0bd7de7ec9305d5f89dcc8f79769b5 100644 (file)
@@ -66,15 +66,7 @@ FOREACH(_header ${_headers})
       ADD_LIBRARY(${_target} OBJECT EXCLUDE_FROM_ALL test_header.cc
         ${CMAKE_CURRENT_BINARY_DIR}/${_target}_interrupt_guard.cc
         )
-
-      SET_TARGET_PROPERTIES(${_target} PROPERTIES
-        LINK_FLAGS "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"
-        COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS};${DEAL_II_USER_DEFINITIONS_${_build}}"
-        COMPILE_FLAGS "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
-        )
-      SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
-        INCLUDE_DIRECTORIES "${DEAL_II_INCLUDE_DIRS}"
-        )
+      DEAL_II_SETUP_TARGET(${_target} ${_build})
       SET_PROPERTY(TARGET ${_target} APPEND PROPERTY
         COMPILE_DEFINITIONS HEADER=<deal.II/${_header}>
         )
index 8279e6741a019a86ee94230c803c20950c138de8..718b570974aa40c9e33319451439df02a936c07e 100644 (file)
@@ -70,7 +70,7 @@ FOREACH(_step_full ${_steps})
       FILE(GLOB _files ${_step_full}/*)
       SET(_command)
       FOREACH(_file ${_files})
-        IF(NOT _file MATCHES "/(CMakeCache.txt|CMakeFiles|doc|.svn)")
+        IF(NOT _file MATCHES "/(CMakeCache.txt|CMakeFiles|doc)")
           LIST(APPEND _command
             COMMAND ${CMAKE_COMMAND} -E copy ${_file} ${_step_dir}
             )
index 209690137c889b18aff075e46e299fb8cfb8ca7d..121ac56e3b4bcee5a1538cbd31298127901cf056 100644 (file)
@@ -1,6 +1,6 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
 INCLUDE(${DEAL_II_SOURCE_DIR}/tests/setup_testsubproject.cmake)
 PROJECT(testsuite CXX)
-IF((DEAL_II_WITH_PETSC) AND (DEAL_II_WITH_SLEPC))
+IF(DEAL_II_WITH_PETSC AND DEAL_II_WITH_SLEPC)
   DEAL_II_PICKUP_TESTS()
 ENDIF()

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


Typeset in Trocchi and Trocchi Bold Sans Serif.