1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
26 # additional include directories
28 ${OpenCASCADE_INCLUDE_DIR}
30 ${KERNEL_INCLUDE_DIRS}
31 ${PROJECT_BINARY_DIR}/idl
32 ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
33 ${PROJECT_SOURCE_DIR}/src/GEOM
34 ${PROJECT_SOURCE_DIR}/src/GEOMImpl
35 ${PROJECT_SOURCE_DIR}/src/GEOM_I
36 ${PROJECT_SOURCE_DIR}/src/GEOMClient
37 ${PROJECT_SOURCE_DIR}/src/OCC2VTK
38 ${PROJECT_SOURCE_DIR}/src/GEOMUtils
44 ${PROJECT_SOURCE_DIR}/src/OBJECT
45 ${PROJECT_SOURCE_DIR}/src/GEOMGUI
46 ${PROJECT_SOURCE_DIR}/src/GEOMBase
50 # additional preprocessor / compiler flags
52 ${OpenCASCADE_DEFINITIONS}
53 ${OMNIORB_DEFINITIONS}
57 ADD_DEFINITIONS(-DNOGDI)
66 # libraries to link to
67 SET(_link_engine_LIBRARIES
68 ${KERNEL_SALOMELocalTrace}
79 SET(_link_gui_LIBRARIES
90 SET(VTKPluginEngine_HEADERS
91 VTKPlugin_IOperations_i.hh
93 VTKPlugin_OperationsCreator.hxx
94 VTKPlugin_IOperations.hxx
96 VTKPlugin_ExportDriver.hxx
97 VTKPlugin_IECallBack.hxx
101 # header files / to be processed by moc
104 VTKPlugin_ExportDlg.h
111 # sources / moc wrappings
112 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
114 SET(VTKPluginGUI_SOURCES
116 VTKPlugin_ExportDlg.cxx
121 SET(VTKPluginEngine_SOURCES
123 VTKPlugin_OperationsCreator.cxx
124 VTKPlugin_IOperations_i.cc
125 VTKPlugin_IOperations.cxx
126 VTKPlugin_ExportDriver.cxx
127 VTKPlugin_IECallBack.cxx
130 # resource files / to be processed by lrelease
131 SET(VTKPlugin_RESOURCES
139 ADD_LIBRARY(VTKPluginEngine ${VTKPluginEngine_SOURCES})
140 TARGET_LINK_LIBRARIES(VTKPluginEngine ${_link_engine_LIBRARIES})
141 INSTALL(TARGETS VTKPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
144 ADD_LIBRARY(VTKPluginGUI ${VTKPluginGUI_SOURCES})
145 TARGET_LINK_LIBRARIES(VTKPluginGUI ${_link_gui_LIBRARIES})
146 INSTALL(TARGETS VTKPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
148 QT_INSTALL_TS_RESOURCES("${VTKPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
152 INSTALL(FILES ${VTKPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})