From: bruneton Date: Tue, 23 Jul 2013 10:04:32 +0000 (+0000) Subject: CMake doc X-Git-Tag: V7_4_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9941d662493539abe67c62a2df3ae02afe78647;p=tools%2Fdocumentation.git CMake doc --- diff --git a/dev/cmake/source/skeleton.rst b/dev/cmake/source/skeleton.rst index 3505b7f..ba07f6c 100644 --- a/dev/cmake/source/skeleton.rst +++ b/dev/cmake/source/skeleton.rst @@ -33,7 +33,7 @@ The root CMakeLists.txt should contain the following elements: ENDIF() -* Installation directories. Those directories should be used consistently across all SALOME modules:: +* Common installation directories. Those directories should be used consistently across all SALOME modules:: SET(SALOME_INSTALL_BINS bin/salome CACHE PATH "Install path: SALOME binaries") SET(SALOME_INSTALL_LIBS lib/salome CACHE PATH "Install path: SALOME libs") @@ -43,6 +43,13 @@ The root CMakeLists.txt should contain the following elements: ... +* Specific installation directories. Those should start with SALOME_:: + + SET(SALOME_GUI_INSTALL_PARAVIEW_LIBS lib/paraview CACHE PATH "Install path: SALOME GUI ParaView libraries") + SET(SALOME_GUI_INSTALL_RES_DATA "${SALOME_INSTALL_RES}/gui" CACHE PATH "Install path: SALOME GUI specific data") + ... + + * Inclusion of the source code directories to be compiled:: IF(NOT SALOME_LIGHT_ONLY) @@ -63,11 +70,11 @@ First, include directories:: INCLUDE_DIRECTORIES( ${OMNIORB_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIRS} - ${CMAKE_BINARY_DIR}/salome_adm + ${PROJECT_BINARY_DIR}/salome_adm ${CMAKE_CURRENT_SOURCE_DIR}/../Basics ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace ${CMAKE_CURRENT_SOURCE_DIR}/../Utils - ${CMAKE_BINARY_DIR}/idl + ${PROJECT_BINARY_DIR}/idl ) Then we define the sources list _SOURCES::