IF(UNIX)
IF(CMAKE_COMPILER_IS_GNUCC)
#C++11 is not supported on some platforms, disable it
- MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
+ #MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
#Supporting test coverage checks (gcov) in the DEBUG mode
ENDIF(USE_TEST_COVERAGE)
#SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -E")
- MESSAGE(STATUS "gcc flags are: " ${CMAKE_CXX_FLAGS})
- MESSAGE(STATUS "linker flags are: " ${CMAKE_SHARED_LINKER_FLAGS})
+ #MESSAGE(STATUS "gcc flags are: " ${CMAKE_CXX_FLAGS})
+ #MESSAGE(STATUS "linker flags are: " ${CMAKE_SHARED_LINKER_FLAGS})
ENDIF(CMAKE_COMPILER_IS_GNUCC)
ENDIF(UNIX)
INCLUDE(FindEclipse)
INCLUDE(Common)
INCLUDE(FindSalomeQt5)
-INCLUDE(FindPython)
INCLUDE(FindSalome)
INCLUDE(FindCAS)
INCLUDE(FindSUIT)
INCLUDE(FindTInspector)
+IF(${HAVE_SALOME})
+ 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)
+ ELSE()
+ MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
+ ENDIF()
+ SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR} CACHE PATH "Path to the Salome KERNEL")
+ IF(EXISTS ${KERNEL_ROOT_DIR})
+ LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
+ FIND_PACKAGE(SalomeKERNEL REQUIRED)
+ ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
+ INCLUDE_DIRECTORIES(${KERNEL_INCLUDE_DIRS})
+ ELSE(EXISTS ${KERNEL_ROOT_DIR})
+ MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
+ ENDIF(EXISTS ${KERNEL_ROOT_DIR})
+ INCLUDE(SalomeSetupPlatform) # From CONFIGURATION
+
+ FIND_PACKAGE(SalomePythonInterp REQUIRED)
+ FIND_PACKAGE(SalomePythonLibs REQUIRED)
+
+ELSE(${HAVE_SALOME})
+ INCLUDE(FindPython)
+ENDIF(${HAVE_SALOME})
+
+# Common CMake macros
+# ===================
+
+
# Find LibXml2
IF(DEFINED ENV{LIBXML2_ROOT_DIR})
IF(WIN32)