Salome HOME
CMake doc
authorbruneton <bruneton>
Tue, 23 Jul 2013 10:04:32 +0000 (10:04 +0000)
committerbruneton <bruneton>
Tue, 23 Jul 2013 10:04:32 +0000 (10:04 +0000)
dev/cmake/source/skeleton.rst

index 3505b7f119fcfedaf1d282f8c65bf7339098ed23..ba07f6c2af9275ce84279c6892198d07b22fdab9 100644 (file)
@@ -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_<MODULE>::
+
+    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 <target>_SOURCES::