From bd69bae524356e4c0b149f9bcae488bec9c10fe7 Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Wed, 14 Aug 2024 19:44:51 +0200 Subject: [PATCH] reintroduce install() of generated files --- src/framework/core/CMakeLists.txt | 7 +++++++ src/modules/epos/CMakeLists.txt | 5 +++++ src/modules/fluka/CMakeLists.txt | 5 +++++ src/modules/qgsjetII/CMakeLists.txt | 5 +++++ src/modules/sibyll/CMakeLists.txt | 5 +++++ src/modules/sophia/CMakeLists.txt | 5 +++++ 6 files changed, 32 insertions(+) diff --git a/src/framework/core/CMakeLists.txt b/src/framework/core/CMakeLists.txt index 4cbe6cb56..7f05db427 100644 --- a/src/framework/core/CMakeLists.txt +++ b/src/framework/core/CMakeLists.txt @@ -32,3 +32,10 @@ add_custom_target (GenParticlesHeaders ${output_dir}/particle_db.pkl ) add_dependencies (CORSIKA8 GenParticlesHeaders) + +install ( + FILES + ${output_dir}/GeneratedParticleProperties.inc + ${output_dir}/GeneratedParticleClasses.inc + DESTINATION include/corsika/framework/core +) diff --git a/src/modules/epos/CMakeLists.txt b/src/modules/epos/CMakeLists.txt index 1f2ef7d45..76b15ff9f 100644 --- a/src/modules/epos/CMakeLists.txt +++ b/src/modules/epos/CMakeLists.txt @@ -18,3 +18,8 @@ add_custom_command ( add_custom_target (SourceDirLinkEpos DEPENDS ${output_dir}/Generated.inc) add_dependencies (CORSIKA8 SourceDirLinkEpos) + +install ( + FILES ${output_dir}/Generated.inc + DESTINATION include/corsika/modules/epos +) diff --git a/src/modules/fluka/CMakeLists.txt b/src/modules/fluka/CMakeLists.txt index a5e97dee2..2d2d26b44 100644 --- a/src/modules/fluka/CMakeLists.txt +++ b/src/modules/fluka/CMakeLists.txt @@ -19,3 +19,8 @@ add_custom_command ( add_custom_target (SourceDirLinkFLUKA DEPENDS ${output_dir}/Generated.inc) add_dependencies (CORSIKA8 SourceDirLinkFLUKA) + +install ( + FILES ${output_dir}/Generated.inc + DESTINATION include/corsika/modules/fluka +) diff --git a/src/modules/qgsjetII/CMakeLists.txt b/src/modules/qgsjetII/CMakeLists.txt index 36ef2bac7..756c5897d 100644 --- a/src/modules/qgsjetII/CMakeLists.txt +++ b/src/modules/qgsjetII/CMakeLists.txt @@ -24,3 +24,8 @@ set_source_files_properties ( add_custom_target (SourceDirLinkQgs DEPENDS ${output_dir}/Generated.inc) add_dependencies (CORSIKA8 SourceDirLinkQgs) + +install ( + FILES ${output_dir}/Generated.inc + DESTINATION include/corsika/modules/qgsjetII +) diff --git a/src/modules/sibyll/CMakeLists.txt b/src/modules/sibyll/CMakeLists.txt index 92f3622ab..932e33db4 100644 --- a/src/modules/sibyll/CMakeLists.txt +++ b/src/modules/sibyll/CMakeLists.txt @@ -24,3 +24,8 @@ set_source_files_properties ( add_custom_target (SourceDirLinkSib DEPENDS ${output_dir}/Generated.inc) add_dependencies (CORSIKA8 SourceDirLinkSib) + +install ( + FILES ${output_dir}/Generated.inc + DESTINATION include/corsika/modules/sibyll +) diff --git a/src/modules/sophia/CMakeLists.txt b/src/modules/sophia/CMakeLists.txt index 501a33f8f..3ae7ee3f7 100644 --- a/src/modules/sophia/CMakeLists.txt +++ b/src/modules/sophia/CMakeLists.txt @@ -25,3 +25,8 @@ set_source_files_properties ( add_custom_target (SourceDirLinkSoph DEPENDS ${output_dir}/Generated.inc) add_dependencies (CORSIKA8 SourceDirLinkSoph) + +install ( + FILES ${output_dir}/Generated.inc + DESTINATION include/corsika/modules/sophia +) -- GitLab