X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDLoader%2FCMakeLists.txt;h=46753e9a96a61ba2c707c23be5c1d126b12bf626;hb=c4551c56aa89896595842e5b41b048044681b4e8;hp=2ebc59a73ee6f994213d448e8ae9ac5006c13cf7;hpb=f1a947b32a36d8dc8e3079b25305bb50e8cb59a0;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDLoader/CMakeLists.txt b/src/ParaMEDLoader/CMakeLists.txt index 2ebc59a73..46753e9a9 100644 --- a/src/ParaMEDLoader/CMakeLists.txt +++ b/src/ParaMEDLoader/CMakeLists.txt @@ -1,9 +1,9 @@ -# Copyright (C) 2012-2013 CEA/DEN, EDF R&D +# Copyright (C) 2012-2016 CEA/DEN, 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 # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -18,9 +18,15 @@ # # Author : Anthony Geay (CEA/DEN) +ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${MPI_DEFINITIONS}) + +IF(HDF5_ENABLE_PARALLEL OR HDF5_IS_PARALLEL) + ADD_DEFINITIONS("-DHDF5_IS_PARALLEL") +ENDIF(HDF5_ENABLE_PARALLEL OR HDF5_IS_PARALLEL) + INCLUDE_DIRECTORIES( ${MPI_INCLUDE_DIRS} - ${MED3_INCLUDE_DIRS} + ${MEDFILE_INCLUDE_DIRS} ${HDF5_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/../ParaMEDMEM ${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader @@ -32,12 +38,12 @@ INCLUDE_DIRECTORIES( SET(paramedloader_SOURCES ParaMEDLoader.cxx + ParaMEDFileMesh.cxx ) -ADD_LIBRARY(paramedloader SHARED ${paramedloader_SOURCES}) -SET_TARGET_PROPERTIES(paramedloader PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS}") +ADD_LIBRARY(paramedloader ${paramedloader_SOURCES}) TARGET_LINK_LIBRARIES(paramedloader paramedmem medloader ${PLATFORM_LIBS}) -INSTALL(TARGETS paramedloader DESTINATION ${MED_salomelib_LIBS}) +INSTALL(TARGETS paramedloader EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${MEDCOUPLING_INSTALL_LIBS}) FILE(GLOB paramedloader_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx") -INSTALL(FILES ${paramedloader_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS}) +INSTALL(FILES ${paramedloader_HEADERS_HXX} DESTINATION ${MEDCOUPLING_INSTALL_HEADERS})