From 3d4e952c39e658547560ebe3152a265e432772cc Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 21 Aug 2013 06:22:42 +0000 Subject: [PATCH] CMake build procedure improvements: - minor general improvements --- bin/CMakeLists.txt | 4 +--- idl/CMakeLists.txt | 2 +- resources/CMakeLists.txt | 8 ++------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index 414bedc12..3be32fdee 100755 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -19,9 +19,7 @@ ADD_SUBDIRECTORY(appliskel) -CONFIGURE_FILE(VERSION.in VERSION @ONLY) - -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION ${SALOME_INSTALL_BINS}) +SALOME_CONFIGURE_FILE(VERSION.in VERSION INSTALL ${SALOME_INSTALL_BINS}) # =============================================================== # Files to be installed diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt index 58ff53f1d..813ec82c6 100755 --- a/idl/CMakeLists.txt +++ b/idl/CMakeLists.txt @@ -24,7 +24,7 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ) -CONFIGURE_FILE(Calcium_Ports.idl.in Calcium_Ports.idl @ONLY) +SALOME_CONFIGURE_FILE(Calcium_Ports.idl.in Calcium_Ports.idl) SET(SalomeIDLKernel_IDLSOURCES SALOME_Exception.idl diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt index df7d256ee..2d514f99b 100755 --- a/resources/CMakeLists.txt +++ b/resources/CMakeLists.txt @@ -24,15 +24,11 @@ # These files are data, module or lib files INSTALL(FILES CatalogModulePersonnel.xml_skel DESTINATION ${SALOME_KERNEL_INSTALL_RES_DATA}) -CONFIGURE_FILE(CatalogResources.xml.in CatalogResources.xml @ONLY) -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/CatalogResources.xml DESTINATION ${SALOME_KERNEL_INSTALL_RES_DATA}) +SALOME_CONFIGURE_FILE(CatalogResources.xml.in CatalogResources.xml INSTALL ${SALOME_KERNEL_INSTALL_RES_DATA}) IF(NOT SALOME_LAUNCHER_ONLY) INSTALL(FILES channel.cfg SALOMEDS_Resources DESTINATION ${SALOME_KERNEL_INSTALL_RES_DATA}) - - CONFIGURE_FILE(KERNELCatalog.xml.in KERNELCatalog.xml @ONLY) - INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/KERNELCatalog.xml DESTINATION ${SALOME_KERNEL_INSTALL_RES_DATA}) - + SALOME_CONFIGURE_FILE(KERNELCatalog.xml.in KERNELCatalog.xml INSTALL ${SALOME_KERNEL_INSTALL_RES_DATA}) ENDIF() -- 2.39.2