]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Moved SalomeGUI detection to folder gui/salome
authormichael <michael@localhost.localdomain>
Thu, 22 Apr 2021 10:52:55 +0000 (12:52 +0200)
committermichael <michael@localhost.localdomain>
Thu, 22 Apr 2021 10:52:55 +0000 (12:52 +0200)
CoreFlows/CMakeLists.txt
CoreFlows/gui/salome/CMakeLists.txt

index c517df24ab8eef53fb2805676709a7f6f45385e1..80d0ccb38eab7a1b458516c12398e038d34a22f9 100755 (executable)
@@ -86,32 +86,6 @@ endif(COREFLOWS_WITH_GUI)
                                                                                                            #
 # ------------- --------------------------------------------------------------------------------------------#
 
-# Salome Graphic interface---------------------------------------------------------------------------------------------#
-                                                                                                               #
-if  ( (EXISTS $ENV{CONFIGURATION_ROOT_DIR}) AND (EXISTS $ENV{KERNEL_ROOT_DIR}) AND (EXISTS $ENV{GUI_ROOT_DIR}) )
-
-       # Common CMake macros
-       # ===================
-       SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
-       IF(EXISTS ${CONFIGURATION_ROOT_DIR})
-         LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake")
-         INCLUDE(SalomeMacros NO_POLICY_SCOPE)
-       ELSE()
-         MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
-       ENDIF()
-                                                                                                               #
-       # Find SALOME GUI 
-       # ==============
-       SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
-       IF(EXISTS ${GUI_ROOT_DIR})
-         FIND_PACKAGE(SalomeGUI)
-       ELSE(EXISTS ${GUI_ROOT_DIR})
-         MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR!")
-       ENDIF(EXISTS ${GUI_ROOT_DIR})
-       
-endif( (EXISTS $ENV{CONFIGURATION_ROOT_DIR}) AND (EXISTS $ENV{KERNEL_ROOT_DIR}) AND (EXISTS $ENV{GUI_ROOT_DIR}) )                                                                                                        #
-#---------------------------------------------------------------------------------------------------------------#
-
 #--------------------- COMPILATION MAIN --------------------------------------------------------------------#
                                                                                                            #
 INCLUDE_DIRECTORIES(                                                                                       #
index bc4df7f12c34e7f17b2f7786870dc16d36f7fa67..20c4150b6ca37e260b5af9a257719039814e5fab 100755 (executable)
@@ -38,6 +38,15 @@ ENDIF( EXISTS ${KERNEL_ROOT_DIR} )
            
 MESSAGE(STATUS "SalomeKERNEL_VERSION is ${SalomeKERNEL_VERSION}")
 
+# Find SALOME GUI 
+# ==============
+SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR} CACHE PATH "Path to the Salome GUI")
+IF(EXISTS ${GUI_ROOT_DIR})
+  FIND_PACKAGE(SalomeGUI)
+ELSE(EXISTS ${GUI_ROOT_DIR})
+  MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR!")
+ENDIF(EXISTS ${GUI_ROOT_DIR})
+       
 # Qt5
 FIND_PACKAGE(SalomeQt5 REQUIRED COMPONENTS QtCore QtGui)