--- PamVMC_update/CMakeLists.txt 2015/03/26 11:45:07 1.3 +++ PamVMC_update/CMakeLists.txt 2015/03/27 15:38:34 1.4 @@ -118,21 +118,22 @@ PamVMC_fcDict.cxx ) - +link_directories($ENV{PAM_LIB}) add_library(PamVMC_fc SHARED ${PamVMC_fc_SOURCE}) +target_link_libraries(PamVMC_fc + ${ROOT_LIBRARIES} + ${Geant4VMC_LIBRARIES} + XMLParser + gfortran + yoda + DarthVader + ) # Build PamVMC.exe -link_directories($ENV{PAM_LIB}) add_executable(PamVMC.exe G4main/PamVMCmain.cxx) target_link_libraries(PamVMC.exe PamVMC_fc PamG4RunConfiguration - ${ROOT_LIBRARIES} - XMLParser - ${Geant4VMC_LIBRARIES} - yoda - DarthVader - gfortran ) # Build libPrimaryInfo.so @@ -145,14 +146,18 @@ # Build sp_gen add_executable(sp_gen - aux/spectra_generator/sp_gen_VF.C + aux/spectra_generator/sp_gen.C ) target_link_libraries(sp_gen ${ROOT_LIBRARIES} - PrimaryInfo + PamVMC_fc yoda DarthVader ) ###### Install rules install(TARGETS PamVMC.exe sp_gen DESTINATION bin) install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib) +install(FILES config/g4config.in config/test.dtd config/g4Config.C config/g3Config.C DESTINATION config) +file(GLOB auxFiles "aux/parameters_l*") +set(auxFiles ${auxFiles} aux/CalibTrk_00110_000_000.root aux/resxy_new.root) +install(FILES ${auxFiles} DESTINATION lib/tgt_$ENV{PLATFORM})