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
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/GEOMUtils
44 ${PROJECT_SOURCE_DIR}/src/OBJECT
45 ${PROJECT_SOURCE_DIR}/src/GEOMGUI
46 ${PROJECT_SOURCE_DIR}/src/GEOMBase
50 # additional preprocessor / compiler flags
61 # libraries to link to
62 SET(_link_engine_LIBRARIES
64 ${KERNEL_SALOMELocalTrace}
73 SET(_link_gui_LIBRARIES
84 SET(STLPluginEngine_HEADERS
85 STLPlugin_IOperations_i.hh
87 STLPlugin_OperationsCreator.hxx
88 STLPlugin_IOperations.hxx
91 STLPlugin_ImportDriver.hxx
92 STLPlugin_ExportDriver.hxx
93 STLPlugin_IECallBack.hxx
97 # header files / to be processed by moc
100 STLPlugin_ExportDlg.h
107 # sources / moc wrappings
108 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
110 SET(STLPluginGUI_SOURCES
112 STLPlugin_ExportDlg.cxx
117 SET(STLPluginEngine_SOURCES
119 STLPlugin_OperationsCreator.cxx
120 STLPlugin_IOperations_i.cc
121 STLPlugin_IOperations.cxx
122 STLPlugin_ExportDriver.cxx
123 STLPlugin_ImportDriver.cxx
124 STLPlugin_IECallBack.cxx
127 # resource files / to be processed by lrelease
128 SET(STLPlugin_RESOURCES
136 ADD_LIBRARY(STLPluginEngine ${STLPluginEngine_SOURCES})
137 TARGET_LINK_LIBRARIES(STLPluginEngine ${_link_engine_LIBRARIES})
138 INSTALL(TARGETS STLPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
141 ADD_LIBRARY(STLPluginGUI ${STLPluginGUI_SOURCES})
142 TARGET_LINK_LIBRARIES(STLPluginGUI ${_link_gui_LIBRARIES})
143 INSTALL(TARGETS STLPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
145 QT4_INSTALL_TS_RESOURCES("${STLPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
149 INSTALL(FILES ${STLPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})