Skip to content
Snippets Groups Projects
Commit 17a9aa96 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

migrate KalTest and KalDet.

parent efedcb7f
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 13 deletions
add_subdirectory(DataHelper) add_subdirectory(DataHelper)
# add_subdirectory(KalDet)
add_subdirectory(KalTest) add_subdirectory(KalTest)
add_subdirectory(KalDet)
# add_subdirectory(KiTrack) # add_subdirectory(KiTrack)
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
# Desc: import from ILCSoft # Desc: import from ILCSoft
############################################################################## ##############################################################################
gaudi_subdir(KalDet v0r0)
find_package(CLHEP REQUIRED;CONFIG) find_package(CLHEP REQUIRED;CONFIG)
find_package(LCIO) find_package(LCIO)
find_package(GEAR) find_package(GEAR)
...@@ -12,21 +10,16 @@ find_package(ROOT COMPONENTS MathCore) ...@@ -12,21 +10,16 @@ find_package(ROOT COMPONENTS MathCore)
find_package(EDM4HEP REQUIRED) find_package(EDM4HEP REQUIRED)
find_package(DD4hep COMPONENTS DDCore DDRec REQUIRED) find_package(DD4hep COMPONENTS DDCore DDRec REQUIRED)
gaudi_depends_on_subdirs(
Detector/DetInterface
Utilities/KalTest
)
get_target_property(to_incl KalTestLib SOURCE_DIR) get_target_property(to_incl KalTestLib SOURCE_DIR)
if (to_incl) if (to_incl)
LIST( APPEND DICT_INCLUDE_DIRS ${to_incl}) LIST( APPEND DICT_INCLUDE_DIRS ${to_incl}/include)
else() else()
message(FATAL_ERROR "Failed to get the source dir for package KalTestLib") message(FATAL_ERROR "Failed to get the source dir for package KalTestLib")
endif() endif()
set( DICT_CINT_DEFINITIONS "HANDLE_DICT_EXCEPTIONS=IGNORED_FOR_CINT" ) set( DICT_CINT_DEFINITIONS "HANDLE_DICT_EXCEPTIONS=IGNORED_FOR_CINT" )
set( DICT_INPUT_DIRS gen kern lctpc/gearTPC ) set( DICT_INPUT_DIRS gen kern lctpc/gearTPC )
set( DICT_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/rootdict ) set( DICT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/rootdict )
foreach( DICT_DIR ${DICT_INPUT_DIRS} ) foreach( DICT_DIR ${DICT_INPUT_DIRS} )
list( APPEND DICT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/${DICT_DIR} ) list( APPEND DICT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/${DICT_DIR} )
...@@ -75,7 +68,22 @@ include_directories( ${DICT_INCLUDE_DIRS} ) ...@@ -75,7 +68,22 @@ include_directories( ${DICT_INCLUDE_DIRS} )
set( KalDetLib_srcs ${LIB_SOURCES} ${COMMON_SOURCES} ) set( KalDetLib_srcs ${LIB_SOURCES} ${COMMON_SOURCES} )
gaudi_add_library(KalDetLib ${KalDetLib_srcs} gaudi_add_library(KalDetLib
PUBLIC_HEADERS kaldet SOURCES ${KalDetLib_srcs}
LINK_LIBRARIES GaudiKernel ROOT ${CLHEP_LIBRARIES} LCIO ${GEAR_LIBRARIES} KalTestLib EDM4HEP::edm4hep EDM4HEP::edm4hepDict ${DD4hep_COMPONENT_LIBRARIES} LINK DetInterface
KalTestLib
Gaudi::GaudiKernel
${ROOT_LIBRARIES}
${CLHEP_LIBRARIES}
${LCIO_LIBRARIES}
${GEAR_LIBRARIES}
EDM4HEP::edm4hep EDM4HEP::edm4hepDict
${DD4hep_COMPONENT_LIBRARIES}
) )
install(TARGETS KalDetLib
EXPORT CEPCSWTargets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
COMPONENT dev)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment