]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
PAR: PARfiles for TTherminator
authordberzano <dario.berzano@cern.ch>
Wed, 28 Jan 2015 15:39:02 +0000 (16:39 +0100)
committerdberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:57:52 +0000 (12:57 +0100)
TTherminator/CMakeLists.txt

index 99c57520d56daca938399c7dbfd02e69dc108e18..e4b85299a9447bc4345d4f37929c492ed4bc4275 100644 (file)
@@ -59,6 +59,11 @@ generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 set(LIBDEPS STEERBase STEER EVGEN Html TreePlayer XMLParser)
 generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
 
+# Generate a PARfile target for this library
+# NOTE: TTherminator requires the "extra include" option of add_target_parfile() to be used, as some
+# header files are found in a subdirectory
+add_target_parfile(${MODULE} "${SRCS}" "${HDRS}" "${MODULE}LinkDef.h" "${LIBDEPS}" "Therminator")
+
 # Add a library to the project using the specified source files
 add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx ${FSRCS})
 
@@ -77,6 +82,8 @@ endif(${CMAKE_SYSTEM} MATCHES Darwin)
 install(TARGETS ${MODULE}
   ARCHIVE DESTINATION lib
   LIBRARY DESTINATION lib)
-install(FILES ${HDRS} DESTINATION include)
+
+# This custom command installs headers preserving their relative subdirectories
+install_relative(FILES ${HDRS} DESTINATION include)
 
 message(STATUS "${MODULE} enabled")