From: Camille GOUTTEBROZE Date: Tue, 9 Dec 2014 10:45:36 +0000 (+0100) Subject: New cmake variables for default profile X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8e9aa2b8f5772bd5ee5eb689d61de10717c08bfe;p=modules%2Fkernel.git New cmake variables for default profile --- diff --git a/src/AppQuickStart/app-template/CMakeLists.txt b/src/AppQuickStart/app-template/CMakeLists.txt index 589425ed5..ba99abf4e 100644 --- a/src/AppQuickStart/app-template/CMakeLists.txt +++ b/src/AppQuickStart/app-template/CMakeLists.txt @@ -17,7 +17,7 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR) -PROJECT(Salome C CXX) +PROJECT(Salome__Profile C CXX) # Ensure a proper linker behavior: CMAKE_POLICY(SET CMP0003 NEW) @@ -86,9 +86,9 @@ INCLUDE(${QT_USE_FILE}) SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH "Install path: SALOME Python scripts") # Specific to [NAME_OF_APPLICATION]: -SET(SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/(name_of_application)" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] specific data") -SET(SALOME_[NAME_OF_APPLICATION]_INSTALL_DOC_GUI "${SALOME_INSTALL_DOC}/gui/${PROJECT_NAME_UC}" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] gui documentation") -SET(SALOME_[NAME_OF_APPLICATION]_HTML_STATIC_PATH "${SALOME_[NAME_OF_APPLICATION]_INSTALL_DOC_GUI}/_static" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] html static data") +SET(SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/(name_of_application)_profile" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] specific data") +SET(SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_DOC_GUI "${SALOME_INSTALL_DOC}/gui/${PROJECT_NAME_UC}" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] gui documentation") +SET(SALOME_[NAME_OF_APPLICATION]_PROFILE_HTML_STATIC_PATH "${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_DOC_GUI}/_static" CACHE PATH "Install path: SALOME [NAME_OF_APPLICATION] html static data") MARK_AS_ADVANCED(SALOME_INSTALL_SCRIPT_PYTHON) diff --git a/src/AppQuickStart/app-template/doc/CMakeLists.txt b/src/AppQuickStart/app-template/doc/CMakeLists.txt index 3e956c9ff..b75081b33 100755 --- a/src/AppQuickStart/app-template/doc/CMakeLists.txt +++ b/src/AppQuickStart/app-template/doc/CMakeLists.txt @@ -25,7 +25,7 @@ SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cm ADD_CUSTOM_TARGET(html_docs COMMAND ${_cmd}) INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target html_docs)") -INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_[NAME_OF_APPLICATION]_INSTALL_DOC_GUI}) +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_DOC_GUI}) SET(make_clean_files html doctrees) SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}") diff --git a/src/AppQuickStart/app-template/resources/CMakeLists.txt b/src/AppQuickStart/app-template/resources/CMakeLists.txt index bd20dae8b..7b70ae1f9 100644 --- a/src/AppQuickStart/app-template/resources/CMakeLists.txt +++ b/src/AppQuickStart/app-template/resources/CMakeLists.txt @@ -27,10 +27,10 @@ SET([NAME_OF_APPLICATION]_RESOURCES_FILES ) # --- rules --- -INSTALL(FILES ${[NAME_OF_APPLICATION]_RESOURCES_FILES} DESTINATION ${SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA}) +INSTALL(FILES ${[NAME_OF_APPLICATION]_PROFILE_RESOURCES_FILES} DESTINATION ${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA}) # --- config --- -SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml INSTALL ${SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA}) +SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml INSTALL ${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA}) # --- sub-directories --- ADD_SUBDIRECTORY( doc ) diff --git a/src/AppQuickStart/app-template/resources/SalomeApp.xml.in b/src/AppQuickStart/app-template/resources/SalomeApp.xml.in index 7ccff68b9..50f915134 100644 --- a/src/AppQuickStart/app-template/resources/SalomeApp.xml.in +++ b/src/AppQuickStart/app-template/resources/SalomeApp.xml.in @@ -17,7 +17,7 @@
- + @@ -25,6 +25,6 @@
- +
diff --git a/src/AppQuickStart/app-template/resources/doc/CMakeLists.txt b/src/AppQuickStart/app-template/resources/doc/CMakeLists.txt index 81611cd4a..1e3735ae5 100644 --- a/src/AppQuickStart/app-template/resources/doc/CMakeLists.txt +++ b/src/AppQuickStart/app-template/resources/doc/CMakeLists.txt @@ -24,4 +24,4 @@ SET(_bin_DOCUMENTS sample.pdf ) -INSTALL(FILES ${_bin_DOCUMENTS} DESTINATION ${SALOME_[NAME_OF_APPLICATION]_INSTALL_DOC_GUI}) +INSTALL(FILES ${_bin_DOCUMENTS} DESTINATION ${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_DOC_GUI}) diff --git a/src/AppQuickStart/app-template/src/resources/CMakeLists.txt b/src/AppQuickStart/app-template/src/resources/CMakeLists.txt index 1d8232624..947046b17 100644 --- a/src/AppQuickStart/app-template/src/resources/CMakeLists.txt +++ b/src/AppQuickStart/app-template/src/resources/CMakeLists.txt @@ -30,4 +30,4 @@ SET(_ts_RESOURCES # --- rules --- -QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_[NAME_OF_APPLICATION]_INSTALL_RES_DATA}") +QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_[NAME_OF_APPLICATION]_PROFILE_INSTALL_RES_DATA}")