- Timestamp:
- May 31, 2021, 2:10:23 PM (4 years ago)
- Parents:
- 224c929
- Location:
- external/HepMC3
- Files:
-
- 11 added
- 1 edited
- 34 moved
Legend:
- Unmodified
- Added
- Removed
-
external/HepMC3/CMakeLists.txt
r224c929 rb30245b 4 4 ) 5 5 6 file(GLOB sources *.cc) 7 8 add_library(HepMC3 OBJECT ${sources}) 6 file(GLOB src_sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc) 7 if(${ROOT_VERSION} LESS 6.0) 8 message(STATUS "ROOT was not found or the version of ROOT ->${ROOT_VERSION}<- is too old. HepMC3 will be built without root I/O") 9 add_library(HepMC3 OBJECT ${src_sources}) 10 target_include_directories(HepMC3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) 11 else() 12 message(STATUS "ROOT was found. The version of ROOT is ->${ROOT_VERSION}<-. HepMC3 will be built with root I/O") 13 file(GLOB rootIO_sources ${CMAKE_CURRENT_SOURCE_DIR}/rootIO/src/*.cc) 14 ROOT_GENERATE_DICTIONARY(G__HepMC3rootIODelphes ${CMAKE_CURRENT_SOURCE_DIR}/rootIO/include/rootIO_Classes.hh LINKDEF ${CMAKE_CURRENT_SOURCE_DIR}/rootIO/include/LinkDef.hh NOINSTALL OPTIONS -inlineInputHeader) 15 add_library(HepMC3 OBJECT ${src_sources} ${rootIO_sources} G__HepMC3rootIODelphes.cxx) 16 target_include_directories(HepMC3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/rootIO/include ${ROOT_INCLUDE_DIRS}) 17 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libHepMC3rootIODelphes_rdict.pcm DESTINATION ${CMAKE_INSTALL_LIBDIR}) 18 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libHepMC3rootIODelphes.rootmap DESTINATION ${CMAKE_INSTALL_LIBDIR}) 19 endif()
Note:
See TracChangeset
for help on using the changeset viewer.