IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8c73d28f authored by Remy Prechelt's avatar Remy Prechelt Committed by Ralf Ulrich
Browse files

Ensure vertical_EAS is only built if Pythia is available.

The `vertical_EAS` example requires Pythia however the build process
still tried to compile the example code even when Pythia was
unavailable. This adds an explicit dependence on Pythia for the
vertical air shower example.
parent f90f128c
No related branches found
No related tags found
No related merge requests found
...@@ -85,33 +85,34 @@ if (Pythia8_FOUND) ...@@ -85,33 +85,34 @@ if (Pythia8_FOUND)
CORSIKAprocesssequence CORSIKAprocesssequence
) )
install (TARGETS cascade_proton_example DESTINATION share/examples) install (TARGETS cascade_proton_example DESTINATION share/examples)
endif()
add_executable(vertical_EAS vertical_EAS.cc) add_executable(vertical_EAS vertical_EAS.cc)
target_link_libraries (vertical_EAS target_link_libraries (vertical_EAS
SuperStupidStack SuperStupidStack
CORSIKAunits CORSIKAunits
CORSIKAlogging CORSIKAlogging
CORSIKArandom CORSIKArandom
ProcessSibyll ProcessSibyll
ProcessPythia ProcessPythia
ProcessUrQMD ProcessUrQMD
ProcessSwitch ProcessSwitch
CORSIKAcascade CORSIKAcascade
ProcessEnergyLoss ProcessEnergyLoss
ProcessObservationPlane ProcessObservationPlane
ProcessTrackingLine ProcessTrackingLine
ProcessParticleCut ProcessParticleCut
ProcessStackInspector ProcessStackInspector
ProcessInteractionCounter ProcessInteractionCounter
CORSIKAprocesses CORSIKAprocesses
CORSIKAcascade CORSIKAcascade
CORSIKAparticles CORSIKAparticles
CORSIKAgeometry CORSIKAgeometry
CORSIKAenvironment CORSIKAenvironment
CORSIKAprocesssequence CORSIKAprocesssequence
) )
install (TARGETS vertical_EAS DESTINATION share/examples) install (TARGETS vertical_EAS DESTINATION share/examples)
endif()
CORSIKA_ADD_TEST(stopping_power) CORSIKA_ADD_TEST(stopping_power)
target_link_libraries (stopping_power target_link_libraries (stopping_power
...@@ -123,7 +124,6 @@ target_link_libraries (stopping_power ...@@ -123,7 +124,6 @@ target_link_libraries (stopping_power
CORSIKAenvironment CORSIKAenvironment
) )
install (TARGETS vertical_EAS DESTINATION share/examples)
CORSIKA_ADD_TEST (staticsequence_example) CORSIKA_ADD_TEST (staticsequence_example)
target_link_libraries (staticsequence_example target_link_libraries (staticsequence_example
CORSIKAprocesssequence CORSIKAprocesssequence
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment