X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCouplingCorba%2FCMakeLists.txt;h=bbe017c60569a1501e737de92f827a43486a0222;hb=27ec212147bf1aafb2b3099c07676bdc3153616f;hp=e4d866dff35b08560d0c9350989afa39f8690894;hpb=10f37bf6f33a762626d7f1093b2f5450c1688667;p=tools%2Fmedcoupling.git diff --git a/src/MEDCouplingCorba/CMakeLists.txt b/src/MEDCouplingCorba/CMakeLists.txt index e4d866dff..bbe017c60 100644 --- a/src/MEDCouplingCorba/CMakeLists.txt +++ b/src/MEDCouplingCorba/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2012 CEA/DEN, EDF R&D +# Copyright (C) 2012-2013 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 @@ -16,12 +16,16 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # +# Author : Anthony Geay (CEA/DEN) ADD_SUBDIRECTORY(Client) -ADD_SUBDIRECTORY(Test) + +IF (CPPUNIT_IS_OK) + ADD_SUBDIRECTORY(Test) +ENDIF (CPPUNIT_IS_OK) INCLUDE_DIRECTORIES( - ${OMNIORB_INCLUDE_DIRS} + ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS} ${KERNEL_ROOT_DIR}/include/salome ${CMAKE_CURRENT_BINARY_DIR}/../../idl ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling @@ -34,6 +38,8 @@ SET(medcouplingcorba_SOURCES MEDCouplingMeshServant.cxx MEDCouplingPointSetServant.cxx MEDCouplingExtrudedMeshServant.cxx + MEDCouplingStructuredMeshServant.cxx + MEDCouplingCurveLinearMeshServant.cxx MEDCouplingCMeshServant.cxx MEDCouplingUMeshServant.cxx MEDCouplingFieldServant.cxx @@ -47,9 +53,12 @@ SET(medcouplingcorba_SOURCES ) ADD_LIBRARY(medcouplingcorba SHARED ${medcouplingcorba_SOURCES}) -SET_TARGET_PROPERTIES(medcouplingcorba PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}") -TARGET_LINK_LIBRARIES(medcouplingcorba medcoupling SalomeIDLMED) +SET_TARGET_PROPERTIES(medcouplingcorba PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}") +TARGET_LINK_LIBRARIES(medcouplingcorba medcoupling SalomeIDLMED ${PLATFORM_LIBS}) INSTALL(TARGETS medcouplingcorba DESTINATION ${MED_salomelib_LIBS}) FILE(GLOB medcouplingcorba_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx") INSTALL(FILES ${medcouplingcorba_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS}) + +# To allow usage as SWIG dependencies: +SET(medcouplingcorba_HEADERS_HXX PARENT_SCOPE)