Skip to content

Commit

Permalink
add AnalysisTreeQAConfig.sh (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksii Lubynets <lubynets@lxbuild07.gsi.de>
  • Loading branch information
lubynets and Oleksii Lubynets authored Jun 12, 2023
1 parent 582bdbf commit 4fd3941
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ if(AnalysisTreeQA_BUILD_TESTS)
add_subdirectory(test)
endif()

configure_file(cmake_modules/AnalysisTreeQAConfig.sh.in ${CMAKE_BINARY_DIR}/AnalysisTreeQAConfig.sh)

include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/AnalysisTreeQA/AnalysisTreeQAConfigVersion.cmake"
Expand Down Expand Up @@ -113,3 +115,11 @@ install(FILES
COMPONENT
Devel
)

install(FILES
${CMAKE_BINARY_DIR}/AnalysisTreeQAConfig.sh
DESTINATION
bin
COMPONENT
Devel
)
7 changes: 7 additions & 0 deletions cmake_modules/AnalysisTreeQAConfig.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source ${ROOT_BINDIR}/thisroot.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${CMAKE_INSTALL_PREFIX}/lib
export ROOT_INCLUDE_PATH=$ROOT_INCLUDE_PATH:${CMAKE_INSTALL_PREFIX}/include/AnalysisTreeQA
if [ -f "${CMAKE_INSTALL_PREFIX}/bin/AnalysisTreeConfig.sh" ]
then
source ${CMAKE_INSTALL_PREFIX}/bin/AnalysisTreeConfig.sh
fi

0 comments on commit 4fd3941

Please sign in to comment.