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)
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}")
# 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()