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

Migrate KalTest. Add the missing config cmake.

parent 924eea29
No related branches found
No related tags found
No related merge requests found
add_subdirectory(DataHelper)
# add_subdirectory(KalDet)
# add_subdirectory(KalTest)
add_subdirectory(KalTest)
# add_subdirectory(KiTrack)
......@@ -3,15 +3,11 @@
# Desc: import from ILCSoft
##############################################################################
gaudi_subdir(KalTest v0r0)
find_package(ROOT REQUIRED COMPONENTS MathCore)
gaudi_depends_on_subdirs()
set( DICT_CINT_DEFINITIONS "HANDLE_DICT_EXCEPTIONS=IGNORED_FOR_CINT" )
set( DICT_INPUT_DIRS geomlib kallib kaltracklib utils )
set( DICT_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/rootdict )
set( DICT_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/rootdict )
foreach( DICT ${DICT_INPUT_DIRS} )
list( APPEND DICT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/${DICT} )
......@@ -54,7 +50,13 @@ include_directories( ${ROOT_INCLUDE_DIRS} )
set(KalTestLib_srcs ${LIB_SOURCES})
gaudi_add_library(KalTestLib ${KalTestLib_srcs}
PUBLIC_HEADERS kaltest
LINK_LIBRARIES GaudiKernel ROOT
gaudi_add_library(KalTestLib
SOURCES ${KalTestLib_srcs}
LINK Gaudi::GaudiKernel
${ROOT_LIBRARIES}
)
install(TARGETS KalTestLib
EXPORT CEPCSWTargets
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT bin
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT shlib
COMPONENT dev)
include(CMakeFindDependencyMacro)
find_dependency(podio REQUIRED)
find_dependency(Gaudi REQUIRED)
find_dependency(k4FWCore REQUIRED)
find_dependency(EDM4HEP REQUIRED)
find_dependency(ROOT REQUIRED)
# - Include the targets file to create the imported targets that a client can
# link to (libraries) or execute (programs)
include("${CMAKE_CURRENT_LIST_DIR}/CEPCSWTargets.cmake")
get_property(TEST_CEPCSW_LIBRARY TARGET CEPCSW::GeomSvc PROPERTY LOCATION)
find_package_handle_standard_args(CEPCSW DEFAULT_MSG CMAKE_CURRENT_LIST_FILE TEST_CEPCSW_LIBRARY)
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