1 # Copyright (C) 2014-2015 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
30 ${KERNEL_INCLUDE_DIRS}
33 ${PROJECT_BINARY_DIR}/idl
34 ${CMAKE_CURRENT_BINARY_DIR}
44 # additional preprocessor / compiler flags
55 # libraries to link to
56 SET(_link_engine_LIBRARIES
59 ${KERNEL_SALOMEBasics}
60 ${KERNEL_SALOMELocalTrace}
70 SET(_link_gui_LIBRARIES
81 SET(XTPluginEngine_HEADERS
82 XTPlugin_IOperations_i.hh
84 XTPlugin_OperationsCreator.hxx
85 XTPlugin_IOperations.hxx
87 XTPlugin_ImportDriver.hxx
88 XTPlugin_IECallBack.hxx
92 # header files / to be processed by moc
101 # sources / moc wrappings
102 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
104 SET(XTPluginGUI_SOURCES
110 SET(XTPluginEngine_SOURCES
112 XTPlugin_OperationsCreator.cxx
113 XTPlugin_IOperations_i.cc
114 XTPlugin_IOperations.cxx
115 XTPlugin_ImportDriver.cxx
116 XTPlugin_IECallBack.cxx
119 # resource files / to be processed by lrelease
120 SET(XTPlugin_RESOURCES
121 resources/XTPlugin_msg_en.ts
122 resources/XTPlugin_msg_fr.ts
123 resources/XTPlugin_msg_ja.ts
127 SET(_python_XT_SCRIPTS
134 # install Engine library
135 ADD_LIBRARY(XTPluginEngine ${XTPluginEngine_SOURCES})
136 TARGET_LINK_LIBRARIES(XTPluginEngine ${_link_engine_LIBRARIES})
137 INSTALL(TARGETS XTPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
139 # install GUI library
141 ADD_LIBRARY(XTPluginGUI ${XTPluginGUI_SOURCES})
142 TARGET_LINK_LIBRARIES(XTPluginGUI ${_link_gui_LIBRARIES})
143 INSTALL(TARGETS XTPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
145 QT_INSTALL_TS_RESOURCES("${XTPlugin_RESOURCES}" "${SALOME_XTPLUGIN_INSTALL_RES_DATA}")
149 INSTALL(FILES ${XTPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
151 # install python scripts
152 SALOME_INSTALL_SCRIPTS("${_python_XT_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/XTPlugin DEF_PERMS)
154 # configure license file
155 CONFIGURE_FILE(XTPlugin_license.h.in XTPlugin_license.h)