From a6467608002102e44feb8453052ae6eccc888222 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 9 Jul 2013 15:13:57 +0000 Subject: [PATCH] SOURCE -> PROJECT --- .../cmake_files/FindSalomeLibXml2.cmake | 30 +++++++++++++++++++ src/MEDCoupling_Swig/CMakeLists.txt | 1 - src/MEDOP/cmp/CMakeLists.txt | 2 +- src/MEDOP/gui/CMakeLists.txt | 4 +-- src/MEDPartitioner/CMakeLists.txt | 2 +- src/ParaMEDMEMTest/CMakeLists.txt | 2 -- 6 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake diff --git a/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake b/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake new file mode 100644 index 000000000..a12966926 --- /dev/null +++ b/adm_local_without_kernel/cmake_files/FindSalomeLibXml2.cmake @@ -0,0 +1,30 @@ +# Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +# LibXml2 detection for SALOME +# +# !! Please read the generic detection procedure in SalomeMacros.cmake !! +# +IF(WIN32) + SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(LibXml2 LIBXML2_INCLUDE_DIR 1) +ELSE() + SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(LibXml2 LIBXML2_INCLUDE_DIR 2) +ENDIF() +#MARK_AS_ADVANCED() + diff --git a/src/MEDCoupling_Swig/CMakeLists.txt b/src/MEDCoupling_Swig/CMakeLists.txt index d8859f7f6..155412702 100644 --- a/src/MEDCoupling_Swig/CMakeLists.txt +++ b/src/MEDCoupling_Swig/CMakeLists.txt @@ -36,7 +36,6 @@ INCLUDE_DIRECTORIES( ${PTHREAD_INCLUDE_DIRS} # pthread dependancy due to python2.7 library ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases diff --git a/src/MEDOP/cmp/CMakeLists.txt b/src/MEDOP/cmp/CMakeLists.txt index 8cdc7bbae..a2801b36d 100644 --- a/src/MEDOP/cmp/CMakeLists.txt +++ b/src/MEDOP/cmp/CMakeLists.txt @@ -26,7 +26,7 @@ INCLUDE_DIRECTORIES( ${PTHREAD_INCLUDE_DIRS} ${KERNEL_ROOT_DIR}/include/salome ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_BINARY_DIR}/idl + ${PROJECT_BINARY_DIR}/idl ${PROJECT_SOURCE_DIR}/src/MEDCoupling ${PROJECT_SOURCE_DIR}/src/INTERP_KERNEL/Bases ${PROJECT_SOURCE_DIR}/src/INTERP_KERNEL diff --git a/src/MEDOP/gui/CMakeLists.txt b/src/MEDOP/gui/CMakeLists.txt index a5095aac3..6a773cb49 100644 --- a/src/MEDOP/gui/CMakeLists.txt +++ b/src/MEDOP/gui/CMakeLists.txt @@ -53,8 +53,8 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}/dialogs ${CMAKE_CURRENT_SOURCE_DIR}/../cmp ${CMAKE_CURRENT_SOURCE_DIR}/../../MEDGUI - ${CMAKE_BINARY_DIR}/idl - ${CMAKE_BINARY_DIR} + ${CMAKE_PROJECT_DIR}/idl + ${CMAKE_PROJECT_DIR} ) SET(MEDOPGUITS_SOURCES diff --git a/src/MEDPartitioner/CMakeLists.txt b/src/MEDPartitioner/CMakeLists.txt index 4cc5bf5dc..2c5c62dac 100644 --- a/src/MEDPartitioner/CMakeLists.txt +++ b/src/MEDPartitioner/CMakeLists.txt @@ -129,7 +129,7 @@ IF(${SALOME_USE_MPI}) SET_TARGET_PROPERTIES(medpartitioner_para PROPERTIES COMPILE_FLAGS "${medpartitionercpp_DEFINITIONS}") TARGET_LINK_LIBRARIES(medpartitioner_para medpartitionercpp ${medpartitionercpp_LDFLAGS}) INSTALL(TARGETS medpartitioner_para DESTINATION ${SALOME_INSTALL_BINS}) -ENDIF(${SALOME_USE_MPI}) +ENDIF(${SALOME_USE_MPI}) ADD_LIBRARY(medpartitionercpp SHARED ${medpartitionercpp_SOURCES}) SET_TARGET_PROPERTIES(medpartitionercpp PROPERTIES COMPILE_FLAGS "${PLATFORM_DEFINITIONS} ${medpartitionercpp_DEFINITIONS}") diff --git a/src/ParaMEDMEMTest/CMakeLists.txt b/src/ParaMEDMEMTest/CMakeLists.txt index 8234d6fea..a54c6955b 100644 --- a/src/ParaMEDMEMTest/CMakeLists.txt +++ b/src/ParaMEDMEMTest/CMakeLists.txt @@ -120,5 +120,3 @@ SET(COMMON_HEADERS_HXX MPI2Connector.hxx ) INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS}) - - \ No newline at end of file -- 2.39.2