]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
CMake: example on adding custom headers
authordberzano <dario.berzano@cern.ch>
Mon, 19 Jan 2015 16:03:10 +0000 (17:03 +0100)
committerdberzano <dario.berzano@cern.ch>
Mon, 19 Jan 2015 16:03:10 +0000 (17:03 +0100)
cmake/CMakeLists.example

index d175edb342e2bc15dcc8f5d272e687d02f34242f..bd99b98e52cd7c9c0d4c1cafc864d06e5c7dbcf7 100644 (file)
@@ -75,6 +75,14 @@ set(SRCS
 #  - If you are not sure how to proceed please contact aliroot-git-admins@cern.ch
 string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 
+# Additional headers, with no corresponding sources
+#  - Instead of adding headers to the HDRS variable with the string(REPLACE)
+#    command above, you can use a separate list
+#  - With this optional command, headers are appended to the HDRS list
+#  - Those headers will be installed in the include directory during the
+#    installation process
+#list(APPEND HDRS "header1.h" "header2.h" "header3.h")
+
 # Generating the dictionary
 #  - The name of the LinkDef has to be "${MODULE}LinkDef.h"
 #  - Using custom LinkDef names is for advanced users! If you are not sure