include_guard() # # jpp_add_data(files) # is a convenience function to copy and install files into dest # in a single command # # The install occurs only in the installation phase (if any) # and puts files into : # # - ${CMAKE_INSTALL_DATADIR} # # The copy always happens at configure time # and puts files into : # # - ${KM3NET_JPP_STAGE_DIR/{CMAKE_INSTALL_DATADIR} # function(jpp_add_data) foreach(D "${ARGV}") install(FILES ${D} DESTINATION ${CMAKE_INSTALL_DATADIR}) endforeach() file(COPY ${ARGV} DESTINATION ${KM3NET_JPP_STAGE_DIR}/${CMAKE_INSTALL_DATADIR}) endfunction()