]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
PAR: output list of enabled PARfiles during CMake
authordberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:56:16 +0000 (12:56 +0100)
committerdberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:57:53 +0000 (12:57 +0100)
CMakeLists.txt
cmake/GenParFile.cmake

index 06ac222781fd63461476a8b1db1563db0b161cbd..36fefac61c6a880918a6c8599c2a503542a79fdf 100644 (file)
@@ -190,6 +190,9 @@ install(FILES ${PROJECT_BINARY_DIR}/version/AliRoot-config.cmake DESTINATION etc
 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
 set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)
 
+# List of modules for which PARfiles are enabled -- use the cache as global scope and clean it
+set(ALIPARFILES "" CACHE INTERNAL "ALIPARFILES" FORCE)
+
 # AliRoot base modules
 add_subdirectory(STEER)
 add_subdirectory(RAW)
@@ -276,3 +279,7 @@ if(SHUTTLE)
 endif(SHUTTLE)
 
 add_subdirectory(ALIROOT)
+
+# List modules with PARfiles
+string(REPLACE ";" " " ALIPARFILES_FLAT "${ALIPARFILES}")
+message(STATUS "PARfile target enabled for the following modules: ${ALIPARFILES_FLAT}")
index b01e59209e7851fde0fbe2c8dc71dfe37bdff640..ccea4d3452f8987ea9c1d6543ad7f5d53597783b 100644 (file)
@@ -77,4 +77,8 @@ function(add_target_parfile PARMODULE PARSOURCES PARHEADERS PARLINKDEF PARLIBDEP
   # Install target
   install(FILES ${PARDIR}/../${PARMODULE}.par DESTINATION PARfiles OPTIONAL)
 
+  # Add this module to the list of generated PARfiles
+  list(APPEND ALIPARFILES ${PARMODULE})
+  set(ALIPARFILES ${ALIPARFILES} CACHE INTERNAL "ALIPARFILES")
+
 endfunction()