#we should get a module path through ${MODULE_PATH} in order to find ROOT find_package ( ROOT REQUIRED ) set ( SOURCES src/Antares_units.cc src/Event.cc src/Geometry.cc src/Hit.cc src/Track.cc ) set ( DictHeaders inc/Header.hh inc/Event.hh inc/Track.hh inc/Hit.hh # inc/LinkDef.h ) include_directories ( inc ) ROOT_GENERATE_DICTIONARY( antccDict ${DictHeaders} LINKDEF LinkDef.h OPTIONS "-DROOTSUPPORT") add_library( antcc STATIC ${SOURCES}) add_library( antccROOT SHARED ${SOURCES} antccDict.cxx) set_target_properties( antccROOT PROPERTIES COMPILE_DEFINITIONS "ROOTSUPPORT") # includes for CLHEP include_directories ( ../ ) include_directories ( ${ROOT_INCLUDE_DIR}) install ( TARGETS antcc ARCHIVE DESTINATION lib) install ( TARGETS antccROOT LIBRARY DESTINATION lib) install ( FILES ${DictHeaders} inc/Geometry.hh DESTINATION include/antcc/)