PAR: install PARfiles (if they were created)
authordberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:47:28 +0000 (12:47 +0100)
committerdberzano <dario.berzano@cern.ch>
Thu, 29 Jan 2015 11:57:53 +0000 (12:57 +0100)
cmake/GenParFile.cmake

index 70ac6a3..b01e592 100644 (file)
@@ -74,4 +74,7 @@ function(add_target_parfile PARMODULE PARSOURCES PARHEADERS PARLINKDEF PARLIBDEP
     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
   )
 
+  # Install target
+  install(FILES ${PARDIR}/../${PARMODULE}.par DESTINATION PARfiles OPTIONAL)
+
 endfunction()