From 9b043706177f5b4d21be0d02ef0a0e57cc928bf6 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Mon, 27 Oct 2014 09:35:04 +0000 Subject: [PATCH] Only install dd_sim if it gets compiled --- UtilityApps/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UtilityApps/CMakeLists.txt b/UtilityApps/CMakeLists.txt index 5520886f2..59ce2f29b 100644 --- a/UtilityApps/CMakeLists.txt +++ b/UtilityApps/CMakeLists.txt @@ -27,6 +27,7 @@ if(DD4HEP_USE_GEANT4) add_executable( dd_sim src/ddsim.cpp) target_link_libraries(dd_sim DD4hepCore DD4hepG4) + install(TARGETS dd_sim RUNTIME DESTINATION bin ) endif() #----------------------------------------------------------------------------------- @@ -44,7 +45,7 @@ target_link_libraries( teveDisplay DD4hepCore ${ROOT_EVE_LIBRARIES} DD4hepRec ${ #--- install target------------------------------------- -install(TARGETS geoDisplay geoConverter geoPluginRun teveDisplay print_materials dd_sim +install(TARGETS geoDisplay geoConverter geoPluginRun teveDisplay print_materials RUNTIME DESTINATION bin LIBRARY DESTINATION lib ) -- GitLab