make sure that the proper header files are used for the build in case musrfit is already installed.

This commit is contained in:
2018-05-04 19:41:16 +02:00
parent a5669569d8
commit 89fbdff40a
5 changed files with 74 additions and 13 deletions

View File

@@ -19,6 +19,10 @@ add_library(TMusrRunHeader SHARED
TMusrRunHeader.cpp
TMusrRunHeaderDict.cxx
)
#--- make sure that the include directory is found ----------------------------
target_include_directories(
TMusrRunHeader BEFORE PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
#--- add library dependencies -------------------------------------------------
target_link_libraries(TMusrRunHeader ${ROOT_LIBRARIES})