From: vsr Date: Tue, 20 Aug 2013 12:33:21 +0000 (+0000) Subject: CMake build procedure improvements: X-Git-Tag: begin_agr_portmanager_branch_131004~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a334cadd88d1149840c335e020016e2d0a4d6795;p=modules%2Fkernel.git CMake build procedure improvements: - minor general improvements --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 72b81660f..b3747b9cc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,10 @@ SET(SALOME_INSTALL_APPLISKEL_PYTHON ${SALOME_INSTALL_BINS}/appliskel CACHE PATH SET(SALOME_INSTALL_CMAKE salome_adm/cmake_files CACHE PATH "Install path: SALOME CMake files") SET(SALOME_INSTALL_CMAKE_LOCAL adm_local/cmake_files CACHE PATH "Install path: local SALOME CMake files") +SET(SALOME_INSTALL_AMCONFIG salome_adm/unix CACHE PATH + "Install path: SALOME config files (obsolete, to be removed)") +SET(SALOME_INSTALL_AMCONFIG_LOCAL adm_local/unix CACHE PATH + "Install path: local SALOME config files (obsolete, to be removed)") SET(_pydir lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages) SET(SALOME_INSTALL_PYTHON ${_pydir}/salome CACHE PATH "Install path: SALOME Python stuff") @@ -142,6 +146,8 @@ SET(SALOME_INSTALL_PYTHON_SHARED ${SALOME_INSTALL_PYTHON}/shared_modules CACHE P SET(SALOME_INSTALL_RES share/salome/resources CACHE PATH "Install path: SALOME resources") +SET(SALOME_INSTALL_DOC share/doc/salome CACHE PATH "Install path: SALOME documentation") + # Kernel specific: SET(SALOME_KERNEL_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/kernel" CACHE PATH "Install path: SALOME KERNEL specific data") SET(SALOME_KERNEL_INSTALL_RES_SCRIPTS "${SALOME_INSTALL_RES}/kernel" CACHE PATH "Install path: SALOME KERNEL specific scripts") @@ -149,7 +155,8 @@ SET(SALOME_KERNEL_INSTALL_RES_SCRIPTS "${SALOME_INSTALL_RES}/kernel" CACHE PATH MARK_AS_ADVANCED(SALOME_INSTALL_BINS SALOME_INSTALL_LIBS SALOME_INSTALL_IDLS SALOME_INSTALL_HEADERS) MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_SCRIPTS SALOME_INSTALL_SCRIPT_DATA SALOME_INSTALL_SCRIPT_PYTHON) MARK_AS_ADVANCED(SALOME_INSTALL_APPLISKEL_SCRIPTS SALOME_INSTALL_APPLISKEL_PYTHON SALOME_INSTALL_CMAKE SALOME_INSTALL_CMAKE_LOCAL SALOME_INSTALL_RES) -MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED SALOME_KERNEL_INSTALL_RES_DATA SALOME_KERNEL_INSTALL_RES_SCRIPTS) +MARK_AS_ADVANCED(SALOME_INSTALL_PYTHON SALOME_INSTALL_PYTHON_SHARED SALOME_KERNEL_INSTALL_RES_DATA SALOME_KERNEL_INSTALL_RES_SCRIPTS SALOME_INSTALL_DOC) +MARK_AS_ADVANCED(SALOME_INSTALL_AMCONFIG SALOME_INSTALL_AMCONFIG_LOCAL) # Sources # ======== diff --git a/doc/docutils/CMakeLists.txt b/doc/docutils/CMakeLists.txt index ece384e80..a87ab4f80 100755 --- a/doc/docutils/CMakeLists.txt +++ b/doc/docutils/CMakeLists.txt @@ -83,5 +83,5 @@ ADD_CUSTOM_TARGET(html_docs ${CALL_STR} ${CMAKE_CURRENT_BINARY_DIR}/env_s.${EXT} ) INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs)") -INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docutils DESTINATION share/doc/salome/tui/KERNEL) -INSTALL(FILES ${PROJECT_SOURCE_DIR}/doc/salome/tui/images/head.png DESTINATION share/doc/salome/tui/KERNEL) +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docutils DESTINATION ${SALOME_INSTALL_DOC}/tui/KERNEL) +INSTALL(FILES ${PROJECT_SOURCE_DIR}/doc/salome/tui/images/head.png DESTINATION ${SALOME_INSTALL_DOC}/tui/KERNEL) diff --git a/doc/salome/gui/CMakeLists.txt b/doc/salome/gui/CMakeLists.txt index 32ac4efd0..1eaf1fce5 100755 --- a/doc/salome/gui/CMakeLists.txt +++ b/doc/salome/gui/CMakeLists.txt @@ -32,5 +32,5 @@ ADD_CUSTOM_TARGET(usr_docs ${DOXYGEN_EXECUTABLE}) ADD_DEPENDENCIES(usr_docs html_docs) INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)") -INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/KERNEL DESTINATION share/doc/salome/gui) -INSTALL(FILES images/head.png DESTINATION share/doc/salome/gui/KERNEL) +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/KERNEL DESTINATION ${SALOME_INSTALL_DOC}/gui) +INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/KERNEL) diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt index 3cb948304..58ff53f1d 100755 --- a/idl/CMakeLists.txt +++ b/idl/CMakeLists.txt @@ -158,8 +158,8 @@ IF(SALOME_PACO_PARALLEL) ADD_CUSTOM_COMMAND(OUTPUT ${genidl} ${parsrc} ${parhdr} ${genpacosrc} ${genpacohdr} COMMAND ${OMNIORB_IDL_COMPILER} -p${PACO_ROOT_DIR}/lib/python -bpaco -Wb${input},${CMAKE_CURRENT_SOURCE_DIR}:${PACO_ROOT_DIR}/idl ${baseidl} DEPENDS ${input} ${baseidl}) - INSTALL(FILES ${input} ${genidl} DESTINATION idl/salome) - INSTALL(FILES ${basehdr} ${parhdr} ${genpacohdr} DESTINATION include/salome) + INSTALL(FILES ${input} ${genidl} DESTINATION ${SALOME_INSTALL_IDLS}) + INSTALL(FILES ${basehdr} ${parhdr} ${genpacohdr} DESTINATION ${SALOME_INSTALL_HEADERS}) IF(OMNIORB_PYTHON_BACKEND) SET(IDLPYFLAGS "-bpython -p${OMNIORB_PYTHON_BACKEND} -I${CMAKE_CURRENT_SOURCE_DIR} -I${PACO_ROOT_DIR}/idl") INSTALL(CODE "OMNIORB_COMPILE_IDL_FORPYTHON_ON_INSTALL( \"${OMNIORB_IDL_COMPILER}\" \"${IDLPYFLAGS}\" \"${genidl}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_PYIDL_DIR}\" )") diff --git a/salome_adm/CMakeLists.txt b/salome_adm/CMakeLists.txt index 0e2733cce..3760caf2a 100755 --- a/salome_adm/CMakeLists.txt +++ b/salome_adm/CMakeLists.txt @@ -21,4 +21,4 @@ ADD_SUBDIRECTORY(unix) ADD_SUBDIRECTORY(cmake_files) SALOME_CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in" "${CMAKE_CURRENT_BINARY_DIR}/SALOMEconfig.h" INSTALL ${SALOME_INSTALL_HEADERS}) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in DESTINATION salome_adm/unix RENAME SALOMEconfig.h.in) \ No newline at end of file +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in DESTINATION ${SALOME_INSTALL_AMCONFIG} RENAME SALOMEconfig.h.in) \ No newline at end of file diff --git a/salome_adm/cmake_files/SalomeKERNELConfig.cmake.in b/salome_adm/cmake_files/SalomeKERNELConfig.cmake.in index 53844ac81..7a3dc823c 100644 --- a/salome_adm/cmake_files/SalomeKERNELConfig.cmake.in +++ b/salome_adm/cmake_files/SalomeKERNELConfig.cmake.in @@ -121,6 +121,9 @@ SET(SALOME_INSTALL_CMAKE_LOCAL "@SALOME_INSTALL_CMAKE_LOCAL@") SET(SALOME_INSTALL_PYTHON "@SALOME_INSTALL_PYTHON@") SET(SALOME_INSTALL_PYTHON_SHARED "@SALOME_INSTALL_PYTHON_SHARED@") SET(SALOME_INSTALL_RES "@SALOME_INSTALL_RES@") +SET(SALOME_INSTALL_DOC "@SALOME_INSTALL_DOC@") +SET(SALOME_INSTALL_AMCONFIG "@SALOME_INSTALL_AMCONFIG@") # to be removed +SET(SALOME_INSTALL_AMCONFIG_LOCAL "@SALOME_INSTALL_AMCONFIG_LOCAL@") # to be removed # Exposed targets: SET(KERNEL_CalciumC CalciumC) diff --git a/salome_adm/unix/CMakeLists.txt b/salome_adm/unix/CMakeLists.txt index 2b9bd368b..a620bd066 100755 --- a/salome_adm/unix/CMakeLists.txt +++ b/salome_adm/unix/CMakeLists.txt @@ -16,20 +16,20 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -ADD_SUBDIRECTORY(config_files) - -SET(DEPRECATED_FILES - DEPRECATED/F77config.h.in - DEPRECATED/sstream.in - DEPRECATED/envScript.in - DEPRECATED/depend.in - DEPRECATED/make_commence.in - DEPRECATED/make_conclude.in - DEPRECATED/make_module.in - DEPRECATED/make_omniorb.in -) - -# The deprecated files are deprecated for the KERNEL but not for the -# related modules (GUI, MED, ...), for now. Some files have to be installed. -INSTALL(FILES ${DEPRECATED_FILES} DESTINATION salome_adm/unix) + +ADD_SUBDIRECTORY(config_files) + +SET(DEPRECATED_FILES + DEPRECATED/F77config.h.in + DEPRECATED/sstream.in + DEPRECATED/envScript.in + DEPRECATED/depend.in + DEPRECATED/make_commence.in + DEPRECATED/make_conclude.in + DEPRECATED/make_module.in + DEPRECATED/make_omniorb.in +) + +# The deprecated files are deprecated for the KERNEL but not for the +# related modules (GUI, MED, ...), for now. Some files have to be installed. +INSTALL(FILES ${DEPRECATED_FILES} DESTINATION ${SALOME_INSTALL_AMCONFIG}) diff --git a/salome_adm/unix/config_files/CMakeLists.txt b/salome_adm/unix/config_files/CMakeLists.txt index 9597663c9..56ce30369 100755 --- a/salome_adm/unix/config_files/CMakeLists.txt +++ b/salome_adm/unix/config_files/CMakeLists.txt @@ -16,70 +16,70 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # - -# The deprecated files are deprecated for the KERNEL but not for the -# related modules (GUI, MED, ...). Some files have to be installed. -SET(DEPRECATED_FILES - DEPRECATED/ac_cc_warnings.m4 - DEPRECATED/ac_cxx_bool.m4 - DEPRECATED/ac_cxx_mutable.m4 - DEPRECATED/ac_cxx_partial_specialization.m4 - DEPRECATED/ac_cxx_typename.m4 - DEPRECATED/check_mico.m4 - DEPRECATED/check_pthreads.m4 - DEPRECATED/config.sub - DEPRECATED/config.guess - DEPRECATED/install-sh - DEPRECATED/libtool.m4 - DEPRECATED/ltconfig - DEPRECATED/ltmain.sh - DEPRECATED/check_Salome.m4 - DEPRECATED/check_java.m4 - DEPRECATED/missing - DEPRECATED/mkinstalldirs -) - -SET(m4_DATA - ac_cxx_depend_flag.m4 - ac_cxx_have_sstream.m4 - ac_cxx_namespaces.m4 - ac_cxx_option.m4 - ac_cxx_template_options.m4 - ac_cxx_use_std_iostream.m4 - ac_cxx_warnings.m4 - ac_linker_options.m4 - ac_check_sizeof_fortran.m4 - acx_pthread.m4 - check_Kernel.m4 - check_boost.m4 - check_cas.m4 - check_corba.m4 - check_cppunit.m4 - check_f77.m4 - check_calcium.m4 - check_hdf5.m4 - check_htmlgen.m4 - check_sphinx.m4 - check_lam.m4 - check_libbatch.m4 - check_mpi.m4 - check_openmpi.m4 - check_mpich.m4 - check_omniorb.m4 - check_sockets.m4 - check_swig.m4 - check_vtk.m4 - check_withihm.m4 - enable_pthreads.m4 - production.m4 - pyembed.m4 - python.m4 - check_libxml.m4 - check_paco++.m4 - local_install.m4 - hack_libtool.m4 - check_tbb.m4 - check_med3.m4 -) -INSTALL(FILES ${DEPRECATED_FILES} DESTINATION salome_adm/unix/config_files/DEPRECATED) -INSTALL(FILES ${m4_DATA} DESTINATION salome_adm/unix/config_files) + +# The deprecated files are deprecated for the KERNEL but not for the +# related modules (GUI, MED, ...). Some files have to be installed. +SET(DEPRECATED_FILES + DEPRECATED/ac_cc_warnings.m4 + DEPRECATED/ac_cxx_bool.m4 + DEPRECATED/ac_cxx_mutable.m4 + DEPRECATED/ac_cxx_partial_specialization.m4 + DEPRECATED/ac_cxx_typename.m4 + DEPRECATED/check_mico.m4 + DEPRECATED/check_pthreads.m4 + DEPRECATED/config.sub + DEPRECATED/config.guess + DEPRECATED/install-sh + DEPRECATED/libtool.m4 + DEPRECATED/ltconfig + DEPRECATED/ltmain.sh + DEPRECATED/check_Salome.m4 + DEPRECATED/check_java.m4 + DEPRECATED/missing + DEPRECATED/mkinstalldirs +) + +SET(m4_DATA + ac_cxx_depend_flag.m4 + ac_cxx_have_sstream.m4 + ac_cxx_namespaces.m4 + ac_cxx_option.m4 + ac_cxx_template_options.m4 + ac_cxx_use_std_iostream.m4 + ac_cxx_warnings.m4 + ac_linker_options.m4 + ac_check_sizeof_fortran.m4 + acx_pthread.m4 + check_Kernel.m4 + check_boost.m4 + check_cas.m4 + check_corba.m4 + check_cppunit.m4 + check_f77.m4 + check_calcium.m4 + check_hdf5.m4 + check_htmlgen.m4 + check_sphinx.m4 + check_lam.m4 + check_libbatch.m4 + check_mpi.m4 + check_openmpi.m4 + check_mpich.m4 + check_omniorb.m4 + check_sockets.m4 + check_swig.m4 + check_vtk.m4 + check_withihm.m4 + enable_pthreads.m4 + production.m4 + pyembed.m4 + python.m4 + check_libxml.m4 + check_paco++.m4 + local_install.m4 + hack_libtool.m4 + check_tbb.m4 + check_med3.m4 +) +INSTALL(FILES ${DEPRECATED_FILES} DESTINATION ${SALOME_INSTALL_AMCONFIG}/config_files/DEPRECATED) +INSTALL(FILES ${m4_DATA} DESTINATION ${SALOME_INSTALL_AMCONFIG}/config_files)