/[PAMELA software]/PamVMC_update/CMakeLists.txt
ViewVC logotype

Diff of /PamVMC_update/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-ts, Sun Mar 22 11:08:45 2015 UTC revision 1.4 by pam-fi, Fri Mar 27 15:38:34 2015 UTC
# Line 118  set(PamVMC_fc_SOURCE Line 118  set(PamVMC_fc_SOURCE
118      PamVMC_fcDict.cxx      PamVMC_fcDict.cxx
119     )     )
120            
121        link_directories($ENV{PAM_LIB})
122  add_library(PamVMC_fc SHARED  ${PamVMC_fc_SOURCE})  add_library(PamVMC_fc SHARED  ${PamVMC_fc_SOURCE})
123    target_link_libraries(PamVMC_fc
124                            ${ROOT_LIBRARIES}
125                            ${Geant4VMC_LIBRARIES}
126                            XMLParser
127                            gfortran
128                            yoda
129                            DarthVader
130                         )
131    
132  # Build PamVMC.exe  # Build PamVMC.exe
 link_directories($ENV{PAM_LIB})  
133  add_executable(PamVMC.exe G4main/PamVMCmain.cxx)  add_executable(PamVMC.exe G4main/PamVMCmain.cxx)
134  target_link_libraries(PamVMC.exe  target_link_libraries(PamVMC.exe
135                          PamVMC_fc                          PamVMC_fc
136                          PamG4RunConfiguration                          PamG4RunConfiguration
137                         )
138    
139    # Build libPrimaryInfo.so
140    include_directories(aux/spectra_generator/)
141    root_generate_dictionary(PrimaryInfoDict
142                              aux/spectra_generator/PrimaryInfo.h
143                              LINKDEF aux/spectra_generator/LinkDef.h
144                            )
145    add_library(PrimaryInfo SHARED PrimaryInfoDict.cxx)
146    
147    # Build sp_gen
148    add_executable(sp_gen
149                    aux/spectra_generator/sp_gen.C
150                  )
151    target_link_libraries(sp_gen
152                          ${ROOT_LIBRARIES}                          ${ROOT_LIBRARIES}
153                          XMLParser                          PamVMC_fc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                         ${Geant4VMC_LIBRARIES}  
154                          yoda                          yoda
155                          DarthVader                          DarthVader
156                          gfortran                       )              
                      )  
                       
157  ###### Install rules  ###### Install rules
158  install(TARGETS PamVMC.exe DESTINATION bin)  install(TARGETS PamVMC.exe sp_gen DESTINATION bin)
159  install(TARGETS PamVMC_fc PamG4RunConfiguration DESTINATION lib)  install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib)
160    install(FILES config/g4config.in config/test.dtd config/g4Config.C config/g3Config.C DESTINATION config)
161    file(GLOB auxFiles "aux/parameters_l*")
162    set(auxFiles ${auxFiles}  aux/CalibTrk_00110_000_000.root aux/resxy_new.root)
163    install(FILES ${auxFiles} DESTINATION lib/tgt_$ENV{PLATFORM})

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23