1 # Copyright (C) 2014-2020 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
24 # additional include directories
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(${QT_DEFINITIONS})
35 ParametersPlugin_Plugin.h
36 ParametersPlugin_Parameter.h
37 ParametersPlugin_EvalListener.h
38 ParametersPlugin_Validators.h
39 ParametersPlugin_WidgetCreator.h
40 ParametersPlugin_ParametersMgr.h
41 ParametersPlugin_WidgetParamsMgr.h
44 SET(PROJECT_MOC_HEADERS
45 ParametersPlugin_WidgetParamsMgr.h
49 ParametersPlugin_Plugin.cpp
50 ParametersPlugin_Parameter.cpp
51 ParametersPlugin_EvalListener.cpp
52 ParametersPlugin_Validators.cpp
53 ParametersPlugin_WidgetCreator.cpp
54 ParametersPlugin_ParametersMgr.cpp
55 ParametersPlugin_WidgetParamsMgr.cpp
62 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
63 ${PROJECT_SOURCE_DIR}/src/Config
64 ${PROJECT_SOURCE_DIR}/src/ModelAPI
65 ${PROJECT_SOURCE_DIR}/src/GeomAPI
66 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
67 ${PROJECT_SOURCE_DIR}/src/ModuleBase
68 ${OpenCASCADE_INCLUDE_DIR}
80 ADD_DEFINITIONS(-DPARAMETERSPLUGIN_EXPORTS ${OpenCASCADE_DEFINITIONS})
83 ParametersPlugin_msg_ru.ts
84 ParametersPlugin_msg_en.ts
85 ParametersPlugin_msg_fr.ts
88 # QT4_CREATE_TRANSLATION(QM_RESOURCES
91 # OPTIONS -extensions cpp -no-recursive
95 # ${CMAKE_CURRENT_BINARY_DIR}/ParametersPlugin_automoc.cpp
97 # sources / moc wrappings
98 QT_WRAP_MOC(PROJECT_AUTOMOC ${PROJECT_MOC_HEADERS})
101 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES})
102 SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
103 SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES})
105 ADD_LIBRARY(ParametersPlugin MODULE
115 TARGET_LINK_LIBRARIES(ParametersPlugin ${PROJECT_LIBRARIES})
117 INSTALL(TARGETS ParametersPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
118 INSTALL(FILES ${XML_RESOURCES} ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES})
119 INSTALL(FILES ${QM_RESOURCES} DESTINATION ${SHAPER_INSTALL_QM_RESOURCES})
121 ADD_UNIT_TESTS(TestParameterCreation.py
122 TestParameterRename.py
123 TestParameterChangeValue.py
124 TestParameterDelete.py
125 TestParameterErrorMsg.py