]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add documentation files to IDE projects 1531/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 9 Sep 2015 15:17:11 +0000 (11:17 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 9 Sep 2015 19:12:16 +0000 (15:12 -0400)
IDEs like qtcreator only pull in files into the project if they are part
of a target. Create a dummy target to do this.

doc/CMakeLists.txt

index dad0c7b507f820e2f1e79465aa82260bcad218c2..7290bfe09492d3f5f5856d8ff817fe7dee4214d3 100644 (file)
@@ -57,3 +57,15 @@ INSTALL(FILES
   DESTINATION ${DEAL_II_DOCREADME_RELDIR}
   COMPONENT library
   )
+
+#
+# Add a dummy target to make documentation files known to IDEs.
+#
+
+FILE(GLOB _misc
+  ${CMAKE_CURRENT_SOURCE_DIR}/doxygen/headers/*.h
+  ${CMAKE_CURRENT_SOURCE_DIR}/news/changes.h
+  )
+
+ADD_LIBRARY(doxygen_headers OBJECT ${_misc})
+SET_TARGET_PROPERTIES(doxygen_headers PROPERTIES LINKER_LANGUAGE C)

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.