]> SALOME platform Git repositories - modules/shaper.git/blob - src/SHAPERGUI/CMakeLists.txt
Salome HOME
Remove extra files
[modules/shaper.git] / src / SHAPERGUI / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3
4 SET(CMAKE_AUTOMOC ON)
5
6 SET(PROJECT_HEADERS
7         SHAPER_SHAPERGUI.h
8         SHAPERGUI.h
9         SHAPERGUI_DataModel.h
10         SHAPERGUI_OCCSelector.h
11         SHAPERGUI_SalomeViewer.h
12         SHAPERGUI_NestedButton.h
13 )
14
15 SET(PROJECT_AUTOMOC
16     ${CMAKE_CURRENT_BINARY_DIR}/SHAPERGUI_automoc.cpp
17 )
18
19 SET(PROJECT_SOURCES
20         SHAPERGUI.cpp
21         SHAPERGUI_DataModel.cpp
22         SHAPERGUI_OCCSelector.cpp
23         SHAPERGUI_SalomeViewer.cpp
24         SHAPERGUI_NestedButton.cpp
25 )
26
27 SET(PROJECT_RESOURCES
28         ${CMAKE_CURRENT_BINARY_DIR}/LightApp.xml
29         ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml
30         resources/shaper.png
31 )
32
33 SET(PROJECT_LIBRARIES
34     Events
35     Config
36         XGUI
37         ModuleBase
38         ${QT_LIBRARIES}
39         ${suit}
40         ${std}
41         ${LightApp}
42         ${CAM}
43         ${OCCViewer}
44         ${qtx}
45         ${CAS_SHAPE}
46 )
47
48 ADD_DEFINITIONS( -DSHAPERGUI_EXPORTS ${CAS_DEFINITIONS} )
49
50 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
51                                         ${PROJECT_SOURCE_DIR}/src/Events
52                                         ${PROJECT_SOURCE_DIR}/src/ModuleBase
53                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
54                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
55                     ${PROJECT_SOURCE_DIR}/src/Config
56                                         ${PROJECT_SOURCE_DIR}/src/ExchangePlugin
57                                         ${SALOME_GUI_INCLUDE}
58                                         ${SALOME_KERNEL_INCLUDE}
59                     ${CAS_INCLUDE_DIRS}
60 )
61
62 ADD_LIBRARY(SHAPER SHARED
63         ${PROJECT_SOURCES}
64         ${PROJECT_HEADERS}
65 )
66
67 ADD_DEPENDENCIES(SHAPER XGUI)
68
69 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
70 TARGET_LINK_LIBRARIES(SHAPER ${PROJECT_LIBRARIES})
71
72 # configuration
73 CONFIGURE_FILE(
74   "${CMAKE_CURRENT_SOURCE_DIR}/resources/LightApp.xml.in"
75   "${CMAKE_CURRENT_BINARY_DIR}/LightApp.xml"
76   )
77 CONFIGURE_FILE(
78   "${CMAKE_CURRENT_SOURCE_DIR}/resources/SalomeApp.xml.in"
79   "${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml"
80   )
81
82 INSTALL(TARGETS SHAPER DESTINATION ${SHAPER_INSTALL_BIN})
83 INSTALL(FILES ${PROJECT_RESOURCES} DESTINATION ${SHAPER_INSTALL_RESOURCES})