1 # Copyright (C) 2014 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
22 INCLUDE(${QT_USE_FILE})
27 # additional include directories
31 ${KERNEL_INCLUDE_DIRS}
32 ${PROJECT_BINARY_DIR}/idl
33 ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
34 ${PROJECT_SOURCE_DIR}/src/GEOM
35 ${PROJECT_SOURCE_DIR}/src/GEOMImpl
36 ${PROJECT_SOURCE_DIR}/src/GEOM_I
37 ${PROJECT_SOURCE_DIR}/src/GEOMClient
38 ${PROJECT_SOURCE_DIR}/src/OCC2VTK
39 ${PROJECT_SOURCE_DIR}/src/GEOMUtils
46 ${PROJECT_SOURCE_DIR}/src/OBJECT
47 ${PROJECT_SOURCE_DIR}/src/GEOMGUI
48 ${PROJECT_SOURCE_DIR}/src/GEOMBase
52 # additional preprocessor / compiler flags
63 # libraries to link to
64 SET(_link_engine_LIBRARIES
66 ${KERNEL_SALOMELocalTrace}
77 SET(_link_gui_LIBRARIES
88 SET(VTKPluginEngine_HEADERS
89 VTKPlugin_IOperations_i.hh
91 VTKPlugin_OperationsCreator.hxx
92 VTKPlugin_IOperations.hxx
94 VTKPlugin_ExportDriver.hxx
95 VTKPlugin_IECallBack.hxx
99 # header files / to be processed by moc
102 VTKPlugin_ExportDlg.h
109 # sources / moc wrappings
110 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
112 SET(VTKPluginGUI_SOURCES
114 VTKPlugin_ExportDlg.cxx
119 SET(VTKPluginEngine_SOURCES
121 VTKPlugin_OperationsCreator.cxx
122 VTKPlugin_IOperations_i.cc
123 VTKPlugin_IOperations.cxx
124 VTKPlugin_ExportDriver.cxx
125 VTKPlugin_IECallBack.cxx
128 # resource files / to be processed by lrelease
129 SET(VTKPlugin_RESOURCES
137 ADD_LIBRARY(VTKPluginEngine ${VTKPluginEngine_SOURCES})
138 TARGET_LINK_LIBRARIES(VTKPluginEngine ${_link_engine_LIBRARIES})
139 INSTALL(TARGETS VTKPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
142 ADD_LIBRARY(VTKPluginGUI ${VTKPluginGUI_SOURCES})
143 TARGET_LINK_LIBRARIES(VTKPluginGUI ${_link_gui_LIBRARIES})
144 INSTALL(TARGETS VTKPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
146 QT4_INSTALL_TS_RESOURCES("${VTKPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
150 INSTALL(FILES ${VTKPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})