-# Copyright (C) 2008-2019 EDF R&D
+# Copyright (C) 2008-2022 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
cmake_minimum_required(VERSION 2.6)
-# Ensure a proper linker behavior:
-CMAKE_POLICY(SET CMP0003 NEW)
-
project(ADAO)
include(CMakeDependentOption)
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)
+ include(SalomeMacros NO_POLICY_SCOPE)
else()
message(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !")
endif()
if(NOT SPHINX_FOUND)
message(FATAL_ERROR "Sphinx has not been found !")
endif(NOT SPHINX_FOUND)
+ add_subdirectory(doc)
endif(ADAO_BUILD_DOC)
add_subdirectory(src)
add_subdirectory(resources)
add_subdirectory(bin)
add_subdirectory(i18n)
- add_subdirectory(doc)
add_subdirectory(test)
else(ADAO_PYTHON_MODULE)
+ include(SalomeSetupPlatform)
+
# ADAO_SALOME_MODULE
install(FILES COPYING.txt README.txt DESTINATION $ENV{CURRENT_SOFTWARE_INSTALL_DIR})
find_package(SalomeOmniORBPy REQUIRED)
find_package(SalomeKERNEL REQUIRED)
KERNEL_WITH_CORBA()
+ add_definitions(${OMNIORB_DEFINITIONS})
if(NOT ADAO_PYTHON_ROOT_DIR)
message(FATAL_ERROR "ADAO_PYTHON_ROOT_DIR cmake variable has to be set if ADAO_SALOME_MODULE option is ON.")