1 # Copyright (C) 2014-2016 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}
34 ${PROJECT_BINARY_DIR}/idl
35 ${CMAKE_CURRENT_BINARY_DIR}
45 # additional preprocessor / compiler flags
56 # libraries to link to
57 SET(_link_engine_LIBRARIES
60 ${KERNEL_SALOMEBasics}
61 ${KERNEL_SALOMELocalTrace}
71 SET(_link_gui_LIBRARIES
82 SET(ACISPluginEngine_HEADERS
83 ACISPlugin_IOperations_i.hh
85 ACISPlugin_OperationsCreator.hxx
86 ACISPlugin_IOperations.hxx
87 ACISPlugin_IExport.hxx
88 ACISPlugin_IImport.hxx
89 ACISPlugin_ImportDriver.hxx
90 ACISPlugin_ExportDriver.hxx
91 ACISPlugin_IECallBack.hxx
95 # header files / to be processed by moc
104 # sources / moc wrappings
105 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
107 SET(ACISPluginGUI_SOURCES
113 SET(ACISPluginEngine_SOURCES
114 ACISPlugin_Engine.cxx
115 ACISPlugin_OperationsCreator.cxx
116 ACISPlugin_IOperations_i.cc
117 ACISPlugin_IOperations.cxx
118 ACISPlugin_ExportDriver.cxx
119 ACISPlugin_ImportDriver.cxx
120 ACISPlugin_IECallBack.cxx
123 # resource files / to be processed by lrelease
124 SET(ACISPlugin_RESOURCES
125 resources/ACISPlugin_msg_en.ts
126 resources/ACISPlugin_msg_fr.ts
127 resources/ACISPlugin_msg_ja.ts
130 # ACIS plugin scripts
131 SET(_python_ACIS_SCRIPTS
138 # install Engine library
139 ADD_LIBRARY(ACISPluginEngine ${ACISPluginEngine_SOURCES})
140 TARGET_LINK_LIBRARIES(ACISPluginEngine ${_link_engine_LIBRARIES})
141 INSTALL(TARGETS ACISPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
143 # install GUI library
145 ADD_LIBRARY(ACISPluginGUI ${ACISPluginGUI_SOURCES})
146 TARGET_LINK_LIBRARIES(ACISPluginGUI ${_link_gui_LIBRARIES})
147 INSTALL(TARGETS ACISPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
149 QT4_INSTALL_TS_RESOURCES("${ACISPlugin_RESOURCES}" "${SALOME_ACISPLUGIN_INSTALL_RES_DATA}")
153 INSTALL(FILES ${ACISPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
155 # install python scripts
156 SALOME_INSTALL_SCRIPTS("${_python_ACIS_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/ACISPlugin DEF_PERMS)
158 # configure license file
159 CONFIGURE_FILE(ACISPlugin_license.h.in ACISPlugin_license.h)