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

WIP: use the GenFit::genfit2 in cmake.

parent f37be999
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ if(NOT CMAKE_CXX_STANDARD MATCHES "14|17")
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()
list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") # (Find*.cmake)
include(cmake/CEPCSWDependencies.cmake)
add_subdirectory(Analysis)
......
......@@ -18,6 +18,10 @@ gaudi_add_module(Examples
${podio_LIBRARIES} podio::podioRootIO
)
if (GenFit_FOUND)
target_link_library(Examples GenFit::genfit2)
endif()
target_include_directories(Examples PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>/include
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
......
......@@ -31,3 +31,4 @@ find_package(LCIO REQUIRED)
find_package(PandoraSDK REQUIRED)
find_package(podio REQUIRED)
find_package(ROOT COMPONENTS EG Graf Graf3d Gpad MathCore Net RIO Tree TreePlayer REQUIRED)
find_package(GenFit)
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