Skip to content

Commit

Permalink
Make sure to populat the include_dirs of the lcio target (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored Dec 1, 2023
1 parent eb19f93 commit 189b332
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ ADD_SHARED_LIBRARY( lcio
${LCIO_MT_SRCS}
)
INSTALL_SHARED_LIBRARY( lcio DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT LCIOTargets )
target_include_directories(lcio PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/cpp/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

TARGET_LINK_LIBRARIES( lcio ${CMAKE_THREAD_LIBS_INIT} )
TARGET_LINK_LIBRARIES( lcio PRIVATE SIO::sio )
Expand Down

0 comments on commit 189b332

Please sign in to comment.