]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add examples and tests to project for IDEs 2362/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 17 Mar 2016 13:55:56 +0000 (14:55 +0100)
committerTimo Heister <timo.heister@gmail.com>
Fri, 18 Mar 2016 11:22:30 +0000 (12:22 +0100)
This adds the example and test source and header files to the cmake
project with a dummy target that is not built. IDEs like qtcreator will
then include the files inside the project.

examples/CMakeLists.txt
tests/CMakeLists.txt

index fd6d05b864e0d2fbf6c2c46029dc9c86f7c3c51e..f2dc23cb41a66356161c8df9839997151e732590 100644 (file)
@@ -48,3 +48,15 @@ IF(DEAL_II_COMPONENT_EXAMPLES)
 
   MESSAGE(STATUS "Setting up examples - Done")
 ENDIF()
+
+#
+# Add a dummy target to make files known to IDEs like qtcreator
+#
+
+FILE(GLOB _misc
+  ${CMAKE_CURRENT_SOURCE_DIR}/step-*/*.cc
+  ${CMAKE_CURRENT_SOURCE_DIR}/step-*/*.h
+)
+ADD_CUSTOM_TARGET(dummy_examples_files
+  SOURCES ${_misc}
+  )
index 60a835dbe4036be54400370185722b9e5364ccb9..f444fe3e2f2d2c4e20b352e54257f078c6311fc6 100644 (file)
@@ -141,5 +141,20 @@ ENDFOREACH()
 
 
 IF(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY)
+  #
+  # Add a dummy target to make files known to IDEs like qtcreator
+  #
+
+  FILE(GLOB _misc
+    ${CMAKE_CURRENT_SOURCE_DIR}/*.cc
+    ${CMAKE_CURRENT_SOURCE_DIR}/*.h
+    ${CMAKE_CURRENT_SOURCE_DIR}/*/*.cc
+    ${CMAKE_CURRENT_SOURCE_DIR}/*/*.h
+  )
+
+  ADD_CUSTOM_TARGET(dummy_tests_files
+    SOURCES ${_misc}
+  )
+
   MESSAGE(STATUS "Setting up testsuite - Done")
 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.