Skip to content

Commit

Permalink
Make sure that LCIO target is also available downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Aug 22, 2024
1 parent 2117994 commit 3c23777
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmake/MarlinConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ CHECK_PACKAGE_LIBS( Marlin Marlin MarlinXML )


# ---------- dependencies -----------------------------------------------------
include(CMakeFindDependencyMacro)
find_dependency(LCIO)
if(NOT TARGET LCIO::lcio)
message(STATUS "LCIO found without targets, bootstrapping them")
add_library(LCIO::lcio INTERFACE IMPORTED GLOBAL)
set_target_properties(LCIO::lcio
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LCIO_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${LCIO_LIBRARIES}"
)
endif()


INCLUDE( "@ILCSOFT_CMAKE_MODULES_ROOT@/MacroExportPackageDeps.cmake" )
# exports following package dependencies (if set)
# first argument of macro should be the package name
Expand Down

0 comments on commit 3c23777

Please sign in to comment.