Salome HOME
Issue #1348 Creation of a Qt panel: providing additional sample for ModuleBase_ModelW...
[modules/shaper.git] / src / SamplePanelPlugin / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 INCLUDE(Common)
4 SET(CMAKE_AUTOMOC ON)
5
6 SET(PROJECT_HEADERS
7     SamplePanelPlugin.h
8     SamplePanelPlugin_Feature.h
9     SamplePanelPlugin_ModelWidget.h
10     SamplePanelPlugin_ModelWidgetCreator.h
11     SamplePanelPlugin_Panel.h
12     SamplePanelPlugin_Plugin.h
13     SamplePanelPlugin_WidgetCreator.h
14 )
15
16 SET(PROJECT_SOURCES
17     SamplePanelPlugin_Feature.cpp
18     SamplePanelPlugin_ModelWidget.cpp
19     SamplePanelPlugin_ModelWidgetCreator.cpp
20     SamplePanelPlugin_Panel.cpp
21     SamplePanelPlugin_Plugin.cpp
22     SamplePanelPlugin_WidgetCreator.cpp
23 )
24
25 SET(PROJECT_LIBRARIES
26     Config
27     Events
28     ModelAPI
29     ModuleBase
30     ${QT_LIBRARIES}
31 )
32
33 SET(XML_RESOURCES
34   plugin-SamplePanel.xml
35 )
36
37 ADD_DEFINITIONS(-DSAMPLEPANELPLUGIN_EXPORTS -DWNT)
38 ADD_LIBRARY(SamplePanelPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
39 TARGET_LINK_LIBRARIES(SamplePanelPlugin ${PROJECT_LIBRARIES})
40
41 INCLUDE_DIRECTORIES(
42   ../Config
43   ../Events
44   ../ModelAPI
45   ../ModuleBase
46 )
47
48 INSTALL(TARGETS SamplePanelPlugin DESTINATION plugins)
49 INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)