1 # Copyright (C) 2012-2019 CEA/DEN, EDF R&D
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
23 # additional include directories
26 ${OpenCASCADE_INCLUDE_DIR}
27 ${PYTHON_INCLUDE_DIRS}
28 ${KERNEL_INCLUDE_DIRS}
33 ${OMNIORB_INCLUDE_DIR}
34 ${CMAKE_CURRENT_BINARY_DIR}
35 ${PROJECT_BINARY_DIR}/idl
36 ${PROJECT_SOURCE_DIR}/src/HYBRIDPlugin
39 # additional preprocessor / compiler flags
42 ${OMNIORB_DEFINITIONS}
43 ${OpenCASCADE_DEFINITIONS}
47 # libraries to link to
50 ${KERNEL_SALOMELocalTrace}
54 ${SMESH_StdMeshersGUI}
55 ${SMESH_SMESHFiltersSelection}
59 ${OpenCASCADE_FoundationClasses_LIBRARIES}
65 # header files / to be processed by moc
67 HYBRIDPluginGUI_HypothesisCreator.h
71 # header files / no moc processed
73 HYBRIDPluginGUI_Enums.h
76 SET(HYBRIDPluginGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
80 # sources / moc wrappings
81 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
86 HYBRIDPluginGUI_HypothesisCreator.cxx
87 HYBRIDPluginGUI_AdvWidget.cxx
92 # resource files / to be processed by lrelease
94 HYBRIDPlugin_images.ts
95 HYBRIDPlugin_msg_en.ts
96 HYBRIDPlugin_msg_fr.ts
97 HYBRIDPlugin_msg_ja.ts
100 # resource files / to be processed by uic
102 HYBRIDPluginGUI_AdvWidget_QTD.ui
105 # header files / uic wrappings
106 QT_WRAP_UIC(_uic_HEADERS ${_uic_files})
108 # sources / to compile
109 SET(HYBRIDPluginGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_uic_HEADERS})
113 ADD_LIBRARY(HYBRIDPluginGUI ${HYBRIDPluginGUI_SOURCES})
114 TARGET_LINK_LIBRARIES(HYBRIDPluginGUI ${_link_LIBRARIES} )
115 INSTALL(TARGETS HYBRIDPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
117 INSTALL(FILES ${HYBRIDPluginGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
118 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_HYBRIDPLUGIN_INSTALL_RES_DATA}")