From ae33d9bc9299cea550b87f9f2b833f57b372c6f3 Mon Sep 17 00:00:00 2001 From: Tobias Triffterer <tobias@ep1.ruhr-uni-bochum.de> Date: Thu, 22 Apr 2021 19:43:03 +0200 Subject: [PATCH] Also Install ROOT Headers Normally, one would expect headers in a development package, but if the header files are not available in the environment where ROOT is run, Cling will throw error messages. This even happens when the version of ROOT is printed in int main() of the server or the client. Therefore, we also install the header files. Their directory should/must be put in the environment variable ROOT_INCLUDE_PATH. --- cmake/build-root-submodule.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/build-root-submodule.cmake b/cmake/build-root-submodule.cmake index 8666375..b92525f 100644 --- a/cmake/build-root-submodule.cmake +++ b/cmake/build-root-submodule.cmake @@ -99,6 +99,7 @@ include(GNUInstallDirs) install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/bin/" TYPE BIN USE_SOURCE_PERMISSIONS) install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/lib/" TYPE LIB USE_SOURCE_PERMISSIONS) install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/etc/" TYPE SYSCONF USE_SOURCE_PERMISSIONS) +install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/include/" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/include/root") install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/fonts/" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/fonts/truetype/") install(DIRECTORY "${PROJECT_BINARY_DIR}/root_install/man/" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/man/") install(FILES "${PROJECT_BINARY_DIR}/root_install/LICENSE" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/root/") -- GitLab