X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=idl%2FCMakeLists.txt;fp=idl%2FCMakeLists.txt;h=ccf13f73cb6d19337e6ceb4e62583ed7dc020229;hb=301fcc69dc7b0f1f3f1f1e844a22cfa722253c8d;hp=0000000000000000000000000000000000000000;hpb=db1524a3d3c3d04bbcfd1eecca1d381fc3fe33c0;p=modules%2Fyacs.git diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt new file mode 100644 index 000000000..ccf13f73c --- /dev/null +++ b/idl/CMakeLists.txt @@ -0,0 +1,50 @@ +# Copyright (C) 2012-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 +# + +INCLUDE(UseOmniORB) + +IF(SALOME_YACS_USE_KERNEL) + SET(SALOME_INCL_PATH ${KERNEL_INCLUDE_DIRS}) +ENDIF(SALOME_YACS_USE_KERNEL) + +INCLUDE_DIRECTORIES( + ${SALOME_INCL_PATH} + ${OMNIORB_INCLUDE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + +IF(WINDOWS) + ADD_DEFINITIONS(-DNOGDI) +ENDIF(WINDOWS) + + +SET(SalomeIDLYACS_IDLSOURCES + yacsgui.idl +) + +SET(IDL_INCLUDE_DIRS + ${KERNEL_ROOT_DIR}/idl/salome + ${CMAKE_CURRENT_SOURCE_DIR} +) +SET(IDL_LINK_FLAGS + ${KERNEL_SalomeIDLKernel} +) + +OMNIORB_ADD_MODULE(SalomeIDLYACS "${SalomeIDLYACS_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_FLAGS}") +INSTALL(TARGETS SalomeIDLYACS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})