IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 5bd42bc5 authored by Ralf M Ulrich's avatar Ralf M Ulrich
Browse files

automaise install

parent 2863f363
No related branches found
No related tags found
No related merge requests found
......@@ -206,4 +206,5 @@ function (CORSIKA_ADD_EXAMPLE)
COMMAND ${CMAKE_COMMAND} -E echo "***** running example: ${name}"
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${name}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/example_outputs)
install (TARGETS ${name} DESTINATION share/examples)
endfunction (CORSIKA_ADD_EXAMPLE)
CORSIKA_ADD_EXAMPLE (helix_example)
target_link_libraries (helix_example CORSIKAgeometry CORSIKAunits)
install (TARGETS helix_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (particle_list_example)
target_link_libraries (particle_list_example CORSIKAparticles CORSIKAunits CORSIKAprocesses ProcessSibyll ProcessQGSJetII)
install (TARGETS particle_list_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (geometry_example)
target_link_libraries (geometry_example CORSIKAgeometry CORSIKAunits)
install (TARGETS geometry_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (logger_example)
target_link_libraries (logger_example CORSIKAunits CORSIKAlogging)
install (TARGETS logger_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (stack_example)
target_link_libraries (stack_example SuperStupidStack CORSIKAunits
CORSIKAlogging)
# address sanitizer is making this example too slow, so we only do "undefined"
CORSIKA_ADD_EXAMPLE (cascade_example)
CORSIKA_ADD_EXAMPLE (boundary_example)
target_link_libraries (boundary_example
SuperStupidStack
CORSIKAunits
......@@ -37,7 +33,29 @@ target_link_libraries (boundary_example
CORSIKAenvironment
CORSIKAprocesssequence
)
install (TARGETS boundary_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (cascade_example)
target_link_libraries (cascade_example
SuperStupidStack
CORSIKAunits
CORSIKAlogging
CORSIKArandom
ProcessSibyll
CORSIKAcascade
ProcessEnergyLoss
ProcessTrackWriter
ProcessStackInspector
ProcessTrackingLine
ProcessParticleCut
ProcessHadronicElasticModel
ProcessStackInspector
CORSIKAprocesses
CORSIKAcascade
CORSIKAparticles
CORSIKAgeometry
CORSIKAenvironment
CORSIKAprocesssequence
)
if (Pythia8_FOUND)
CORSIKA_ADD_EXAMPLE (cascade_proton_example)
......@@ -63,7 +81,6 @@ if (Pythia8_FOUND)
CORSIKAenvironment
CORSIKAprocesssequence
)
install (TARGETS cascade_proton_example DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (vertical_EAS)
target_link_libraries (vertical_EAS
......@@ -90,7 +107,6 @@ if (Pythia8_FOUND)
CORSIKAenvironment
CORSIKAprocesssequence
)
install (TARGETS vertical_EAS DESTINATION share/examples)
endif()
CORSIKA_ADD_EXAMPLE (stopping_power stopping_power)
......@@ -102,7 +118,6 @@ target_link_libraries (stopping_power
CORSIKAgeometry
CORSIKAenvironment
)
install (TARGETS stopping_power DESTINATION share/examples)
CORSIKA_ADD_EXAMPLE (staticsequence_example)
target_link_libraries (staticsequence_example
......@@ -110,4 +125,3 @@ target_link_libraries (staticsequence_example
CORSIKAunits
CORSIKAgeometry
CORSIKAlogging)
install (TARGETS staticsequence_example DESTINATION share/examples)
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