--- PamVMC_update/CMakeLists.txt 2015/03/22 11:08:45 1.2 +++ PamVMC_update/CMakeLists.txt 2015/03/26 11:45:07 1.3 @@ -134,7 +134,25 @@ DarthVader gfortran ) - + +# Build libPrimaryInfo.so +include_directories(aux/spectra_generator/) +root_generate_dictionary(PrimaryInfoDict + aux/spectra_generator/PrimaryInfo.h + LINKDEF aux/spectra_generator/LinkDef.h + ) +add_library(PrimaryInfo SHARED PrimaryInfoDict.cxx) + +# Build sp_gen +add_executable(sp_gen + aux/spectra_generator/sp_gen_VF.C + ) +target_link_libraries(sp_gen + ${ROOT_LIBRARIES} + PrimaryInfo + yoda + DarthVader + ) ###### Install rules -install(TARGETS PamVMC.exe DESTINATION bin) -install(TARGETS PamVMC_fc PamG4RunConfiguration DESTINATION lib) +install(TARGETS PamVMC.exe sp_gen DESTINATION bin) +install(TARGETS PamVMC_fc PamG4RunConfiguration PrimaryInfo DESTINATION lib)