# Copyright (C) 2014-2016 OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # IF(SALOME_BUILD_GUI) INCLUDE(UseQtExt) ENDIF() # --- options --- # additional include directories INCLUDE_DIRECTORIES( ${CAS_INCLUDE_DIRS} ${ACIS_INCLUDE_DIRS} ${KERNEL_INCLUDE_DIRS} ${GEOM_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}/idl ${CMAKE_CURRENT_BINARY_DIR} ) IF(SALOME_BUILD_GUI) INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIRS} ${GUI_INCLUDE_DIRS} ) ENDIF() # additional preprocessor / compiler flags ADD_DEFINITIONS( ${CAS_DEFINITIONS} ) IF(SALOME_BUILD_GUI) ADD_DEFINITIONS( ${QT_DEFINITIONS} ) ENDIF() # libraries to link to SET(_link_engine_LIBRARIES ${CAS_TKXSBase} ${ACIS_LIBRARIES} ${KERNEL_SALOMEBasics} ${KERNEL_SALOMELocalTrace} ${KERNEL_OpUtil} ${GEOM_SalomeIDLGEOM} ${GEOM_GEOMEngine} ${GEOM_GEOMImpl} ${GEOM_GEOMClient} SalomeIDLACISPlugin ) IF(SALOME_BUILD_GUI) SET(_link_gui_LIBRARIES SalomeIDLACISPlugin ${GEOM_GEOMObject} ${GEOM_GEOMBase} ${GEOM_GEOMBase} ) ENDIF() # --- headers --- SET(ACISPluginEngine_HEADERS ACISPlugin_IOperations_i.hh ACISPlugin_Engine.hxx ACISPlugin_OperationsCreator.hxx ACISPlugin_IOperations.hxx ACISPlugin_IExport.hxx ACISPlugin_IImport.hxx ACISPlugin_ImportDriver.hxx ACISPlugin_ExportDriver.hxx ACISPlugin_IECallBack.hxx ) IF(SALOME_BUILD_GUI) # header files / to be processed by moc SET(_moc_HEADERS ACISPlugin_GUI.h ) ENDIF() # --- sources --- IF(SALOME_BUILD_GUI) # sources / moc wrappings QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS}) SET(ACISPluginGUI_SOURCES ACISPlugin_GUI.cxx ${_moc_SOURCES} ) ENDIF() SET(ACISPluginEngine_SOURCES ACISPlugin_Engine.cxx ACISPlugin_OperationsCreator.cxx ACISPlugin_IOperations_i.cc ACISPlugin_IOperations.cxx ACISPlugin_ExportDriver.cxx ACISPlugin_ImportDriver.cxx ACISPlugin_IECallBack.cxx ) # resource files / to be processed by lrelease SET(ACISPlugin_RESOURCES resources/ACISPlugin_msg_en.ts resources/ACISPlugin_msg_fr.ts resources/ACISPlugin_msg_ja.ts ) # ACIS plugin scripts SET(_python_ACIS_SCRIPTS ACISPluginBuilder.py __init__.py ) # --- rules --- # install Engine library ADD_LIBRARY(ACISPluginEngine ${ACISPluginEngine_SOURCES}) TARGET_LINK_LIBRARIES(ACISPluginEngine ${_link_engine_LIBRARIES}) INSTALL(TARGETS ACISPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) # install GUI library IF(SALOME_BUILD_GUI) ADD_LIBRARY(ACISPluginGUI ${ACISPluginGUI_SOURCES}) TARGET_LINK_LIBRARIES(ACISPluginGUI ${_link_gui_LIBRARIES}) INSTALL(TARGETS ACISPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) # install resources QT_INSTALL_TS_RESOURCES("${ACISPlugin_RESOURCES}" "${SALOME_ACISPLUGIN_INSTALL_RES_DATA}") ENDIF() # install headers INSTALL(FILES ${ACISPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) # install python scripts SALOME_INSTALL_SCRIPTS("${_python_ACIS_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/ACISPlugin DEF_PERMS) # configure license file CONFIGURE_FILE(ACISPlugin_license.h.in ACISPlugin_license.h)