From: bruneton Date: Mon, 4 Nov 2013 09:01:48 +0000 (+0000) Subject: CMake: improved reloading of dependent CMake targets in Config file to X-Git-Tag: V7_3_1b1~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0b0ee01bca63b85d94077e750e9c9838e6abea8;p=tools%2Fmedcoupling.git CMake: improved reloading of dependent CMake targets in Config file to account for COMPONENTS. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 13105ef33..f3dfd0af5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -346,6 +346,11 @@ SET(XDR_ROOT_DIR "${XDR_ROOT_DIR}") # Get the relative path of the include directory so # we can register it in the generated configuration files: SET(CONF_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}") + +# Build variables that will be expanded when configuring SalomeConfig.cmake: +SALOME_CONFIGURE_PREPARE(Metis ParMetis Scotch XDR CAS Qt4 CppUnit Graphviz Doxygen Sphinx MPI omniORB + PThread Boost libXml2 Python HDF5 MEDFile) + CONFIGURE_PACKAGE_CONFIG_FILE(${PROJECT_NAME}Config.cmake.in ${PROJECT_BINARY_DIR}/to_install/${PROJECT_NAME}Config.cmake INSTALL_DESTINATION "${SALOME_INSTALL_CMAKE}_LOCAL"