1 # Copyright (C) 2012-2021 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}
29 ${KERNEL_INCLUDE_DIRS}
30 ${PROJECT_BINARY_DIR}/idl
31 ${PROJECT_SOURCE_DIR}/src/GEOMAlgo
32 ${PROJECT_SOURCE_DIR}/src/GEOM
33 ${PROJECT_SOURCE_DIR}/src/GEOMImpl
34 ${PROJECT_SOURCE_DIR}/src/GEOM_I
35 ${PROJECT_SOURCE_DIR}/src/GEOMClient
36 ${PROJECT_SOURCE_DIR}/src/GEOMUtils
37 ${PROJECT_SOURCE_DIR}/src/XAO
43 ${PROJECT_SOURCE_DIR}/src/OBJECT
44 ${PROJECT_SOURCE_DIR}/src/GEOMGUI
45 ${PROJECT_SOURCE_DIR}/src/GEOMBase
46 ${PROJECT_SOURCE_DIR}/src/DlgRef
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}
78 SET(_link_gui_LIBRARIES
89 SET(XAOPluginEngine_HEADERS
90 XAOPlugin_IOperations_i.hh
92 XAOPlugin_OperationsCreator.hxx
93 XAOPlugin_IOperations.hxx
94 XAOPlugin_IImportExport.hxx
96 XAOPlugin_IECallBack.hxx
100 # header files / to be processed by moc
102 XAOPlugin_ExportDlg.h
103 XAOPlugin_ImportDlg.h
110 # sources / moc wrappings
111 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
113 SET(XAOPluginGUI_SOURCES
115 XAOPlugin_ExportDlg.cxx
116 XAOPlugin_ImportDlg.cxx
121 SET(XAOPluginEngine_SOURCES
123 XAOPlugin_OperationsCreator.cxx
124 XAOPlugin_IOperations_i.cc
125 XAOPlugin_IOperations.cxx
127 XAOPlugin_IECallBack.cxx
130 # resource files / to be processed by lrelease
131 SET(XAOPlugin_RESOURCES
140 ADD_LIBRARY(XAOPluginEngine ${XAOPluginEngine_SOURCES})
141 TARGET_LINK_LIBRARIES(XAOPluginEngine ${_link_engine_LIBRARIES})
142 INSTALL(TARGETS XAOPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
145 ADD_LIBRARY(XAOPluginGUI ${XAOPluginGUI_SOURCES})
146 TARGET_LINK_LIBRARIES(XAOPluginGUI ${_link_gui_LIBRARIES})
147 INSTALL(TARGETS XAOPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
149 QT_INSTALL_TS_RESOURCES("${XAOPlugin_RESOURCES}" "${SALOME_GEOM_INSTALL_RES_DATA}")
153 INSTALL(FILES ${XAOPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})