]> SALOME platform Git repositories - modules/shaper.git/blob - src/NewGeom/CMakeLists.txt
Salome HOME
Intermediate changes for sketch builder
[modules/shaper.git] / src / NewGeom / CMakeLists.txt
1
2 INCLUDE(FindCAS)
3
4 SET(CMAKE_AUTOMOC ON)
5
6 SET(PROJECT_HEADERS
7         NewGeom.h
8         NewGeom_Module.h
9         NewGeom_DataModel.h
10         NewGeom_OCCSelector.h
11         NewGeom_SalomeViewer.h
12 )
13
14 SET(PROJECT_AUTOMOC 
15     ${CMAKE_CURRENT_BINARY_DIR}/NewGeom_automoc.cpp
16 )
17
18 SET(PROJECT_SOURCES
19         NewGeom_Module.cpp
20         NewGeom_DataModel.cpp
21         NewGeom_OCCSelector.cpp
22         NewGeom_SalomeViewer.cpp
23 )
24
25 SET(PROJECT_RESOURCES
26         resources/LightApp.xml
27         resources/newgeom.png
28 )
29
30 SET(PROJECT_LIBRARIES
31     Events
32     Config
33         XGUI
34         ${QT_LIBRARIES}
35         ${suit}
36         ${std}
37         ${LightApp}
38         ${CAM}
39         ${OCCViewer}
40 )
41
42 ADD_DEFINITIONS( -DNewGeom_EXPORTS ${CAS_DEFINITIONS} )
43
44 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/XGUI
45                                         ${PROJECT_SOURCE_DIR}/src/Events
46                                         ${PROJECT_SOURCE_DIR}/src/ModuleBase
47                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
48                                         ${SALOME_GUI_INCLUDE}
49                                         ${SALOME_KERNEL_INCLUDE}
50                     ${CAS_INCLUDE_DIRS}
51 )
52
53 ADD_LIBRARY(NewGeom SHARED 
54         ${PROJECT_SOURCES} 
55         ${PROJECT_HEADERS} 
56 )
57
58 ADD_DEPENDENCIES(NewGeom XGUI)
59
60 # The Qt5Widgets_LIBRARIES variable also includes QtGui and QtCore
61 TARGET_LINK_LIBRARIES(NewGeom ${PROJECT_LIBRARIES})
62
63 INSTALL(TARGETS NewGeom DESTINATION bin)
64 INSTALL(FILES ${PROJECT_RESOURCES} DESTINATION share/salome/resources/newgeom )