]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected instalation of documentation
authorndjinga <michael.ndjinga@cea.fr>
Wed, 23 Sep 2020 11:23:26 +0000 (13:23 +0200)
committerndjinga <michael.ndjinga@cea.fr>
Wed, 23 Sep 2020 11:23:26 +0000 (13:23 +0200)
CDMATH/CMakeLists.txt
CMakeLists.txt
CoreFlows/CMakeLists.txt

index d8d89d9954b07b4959e69075f899043d6ab56ffc..758a4e3c5891eaab1745086f270f31a6c43f4400 100755 (executable)
@@ -7,9 +7,6 @@ project (CDMATH)
 set (CDMATH_VERSION_MAJOR 1)
 set (CDMATH_VERSION_MINOR 0)
 
-include(ExternalProject)#For PETSc, MED and MEDCoupling
-set (CMAKE_BUILD_TYPE Release CACHE STRING "Installation mode")
-
 # Project options
 option (CDMATH_WITH_PETSC "Compile CDMATH with PETSc linking." ON)
 option (CDMATH_WITH_DOCUMENTATION "Generate documentation with doxygen." ON)
@@ -81,13 +78,13 @@ if (CDMATH_WITH_DOCUMENTATION)
   add_custom_target (docCDMATH COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
                                                          SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
   if   ( IS_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html)
-    install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION doc/cdmath-dev-doc)
+    install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/cdmath-dev-doc)
   endif( IS_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html)
 endif(CDMATH_WITH_DOCUMENTATION)
 
 #Debug option : todo = sort flags
 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -pg -fprofile-arcs -ftest-coverage -lgcov")
-if   (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+if   (CMAKE_BUILD_TYPE STREQUAL "Debug")
   SET(CMAKE_EXE_LINKER_FLAGS "-pg -fprofile-arcs -ftest-coverage -lgcov")
   SET(CMAKE_CXX_FLAGS "-fprofile-arcs -ftest-coverage")
 endif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
@@ -111,7 +108,6 @@ endif ()
 # Configuration file
 configure_file(
     ${PROJECT_SOURCE_DIR}/env_CDMATH.sh
-    ${CMAKE_INSTALL_PREFIX}/env_CDMATH.sh
     @ONLY
 )
                                                                                                            
index 909b4f7aaa2cd4d8d846a792e5747fdfe4f6fa0d..3bb4018dc55028f6ecc7e5069eb65deb740b405e 100644 (file)
@@ -35,8 +35,12 @@ set (DOWNLOAD_MED           http://files.salome-platform.org/Salome/other/med-4.
 set (DOWNLOAD_MEDCOUPLING   http://files.salome-platform.org/Salome/other/medCoupling-9.4.0.tar.gz
      CACHE STRING           "MEDCoupling tarball path/url" )
 
+set (CMAKE_BUILD_TYPE Release CACHE STRING "Installation mode")
+
 list (APPEND CMAKE_MODULE_PATH "${SOLVERLAB_SOURCE_DIR}/cmake_files")
+
 include(ExternalProject)#For PETSc, MED and MEDCoupling
+
 ######################################################
 # Detection or compilation of PETSc+SLEPc+HDF5       #
 ######################################################
index 529e534c2a99ad024d0d23f43137d7e925b22216..9f3a45c9a7a3e6526f0c486608a3ebe93963d6a8 100755 (executable)
@@ -65,8 +65,8 @@ if (COREFLOWS_WITH_DOCUMENTATION)
       )                                                                                                     #
   add_custom_target (docCoreFlows COMMAND ${DOXYGEN_EXECUTABLE}                                                  #
   SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)                                                                  #
-  install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/CoreFlows OPTIONAL)                  #
-  INSTALL(FILES ${CoreFlows_SOURCE_DIR}/Documentation/CoreFlows.pdf DESTINATION share/doc/CoreFlows OPTIONAL)      #
+  install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION share/doc/coreflows-dev-doc OPTIONAL)                  #
+  INSTALL(FILES ${CoreFlows_SOURCE_DIR}/Documentation/CoreFlows.pdf DESTINATION share/doc OPTIONAL)        #
 endif ()                                                                                                    #
                                                                                                             #
 # ------------- --------------------------------------------------------------------------------------------#
@@ -114,7 +114,6 @@ INSTALL(TARGETS CoreFlowsMainExe DESTINATION bin)                                               #
                                                                                                            #
 configure_file(
     ${PROJECT_SOURCE_DIR}/env_CoreFlows.sh
-    ${CMAKE_INSTALL_PREFIX}/env_CoreFlows.sh
     @ONLY
 )