]> SALOME platform Git repositories - modules/geom.git/blob - idl/CMakeLists.txt
Salome HOME
Porting to dev version of OCCT.
[modules/geom.git] / idl / CMakeLists.txt
1 # Copyright (C) 2012-2016  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseOmniORB)
21
22 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${OMNIORB_INCLUDE_DIR}
25   ${CMAKE_CURRENT_BINARY_DIR}
26 )
27
28 IF(WIN32)
29   ADD_DEFINITIONS(-DNOGDI)
30 ENDIF(WIN32)
31
32
33 SET(SalomeIDLGEOM_IDLSOURCES
34   GEOM_Gen.idl
35 )
36
37 SET(SalomeIDLGEOMSuperv_IDLSOURCES
38   GEOM_Superv.idl
39 )
40
41 SET(SalomeIDLAdvancedGEOM_IDLSOURCES
42   AdvancedGEOM.idl
43 )
44
45 SET(SalomeIDLSTLPlugin_IDLSOURCES
46   STLPlugin.idl
47 )
48
49 SET(SalomeIDLBREPPlugin_IDLSOURCES
50   BREPPlugin.idl
51 )
52
53 SET(SalomeIDLSTEPPlugin_IDLSOURCES
54   STEPPlugin.idl
55 )
56
57 SET(SalomeIDLIGESPlugin_IDLSOURCES
58   IGESPlugin.idl
59 )
60
61 SET(SalomeIDLXAOPlugin_IDLSOURCES
62   XAOPlugin.idl
63 )
64
65 SET(SalomeIDLVTKPlugin_IDLSOURCES
66   VTKPlugin.idl
67 )
68
69 SET(IDL_INCLUDE_DIRS
70   ${KERNEL_ROOT_DIR}/idl/salome
71   ${CMAKE_CURRENT_SOURCE_DIR}
72 )
73
74 SET(IDL_LINK_FLAGS
75   ${KERNEL_SalomeIDLKernel}
76 )
77
78 SET(IDL_LINK_PLUGIN_FLAGS
79   ${KERNEL_SalomeIDLKernel}
80   SalomeIDLGEOM
81 )
82
83 SET(IDL_LINK_SUPERV_FLAGS
84   ${KERNEL_SalomeIDLKernel}
85   SalomeIDLGEOM
86   SalomeIDLAdvancedGEOM
87 )
88
89 OMNIORB_ADD_MODULE(SalomeIDLGEOM "${SalomeIDLGEOM_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_FLAGS}")
90 INSTALL(TARGETS SalomeIDLGEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
91
92 OMNIORB_ADD_MODULE(SalomeIDLAdvancedGEOM "${SalomeIDLAdvancedGEOM_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
93 INSTALL(TARGETS SalomeIDLAdvancedGEOM EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
94
95 OMNIORB_ADD_MODULE(SalomeIDLSTLPlugin "${SalomeIDLSTLPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
96 INSTALL(TARGETS SalomeIDLSTLPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
97
98 OMNIORB_ADD_MODULE(SalomeIDLBREPPlugin "${SalomeIDLBREPPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
99 INSTALL(TARGETS SalomeIDLBREPPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
100
101 OMNIORB_ADD_MODULE(SalomeIDLSTEPPlugin "${SalomeIDLSTEPPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
102 INSTALL(TARGETS SalomeIDLSTEPPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
103
104 OMNIORB_ADD_MODULE(SalomeIDLIGESPlugin "${SalomeIDLIGESPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
105 INSTALL(TARGETS SalomeIDLIGESPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
106
107 OMNIORB_ADD_MODULE(SalomeIDLXAOPlugin "${SalomeIDLXAOPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
108 INSTALL(TARGETS SalomeIDLXAOPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
109
110 IF(SALOME_GEOM_USE_VTK)
111   OMNIORB_ADD_MODULE(SalomeIDLVTKPlugin "${SalomeIDLVTKPlugin_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_PLUGIN_FLAGS}")
112   INSTALL(TARGETS SalomeIDLVTKPlugin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
113 ENDIF(SALOME_GEOM_USE_VTK)
114
115 OMNIORB_ADD_MODULE(SalomeIDLGEOMSuperv "${SalomeIDLGEOMSuperv_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" "${IDL_LINK_SUPERV_FLAGS}")
116 INSTALL(TARGETS SalomeIDLGEOMSuperv EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})