Salome HOME
10032371dce3a4f02c4ae7d4921d407de58fe7b6
[modules/geom.git] / src / BasicGUI / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQtExt)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${PTHREAD_INCLUDE_DIR}
27   ${OMNIORB_INCLUDE_DIR}
28   ${OpenCASCADE_INCLUDE_DIR}
29   ${KERNEL_INCLUDE_DIRS}
30   ${GUI_INCLUDE_DIRS}
31   ${PROJECT_BINARY_DIR}/idl
32   ${PROJECT_BINARY_DIR}
33   ${PROJECT_SOURCE_DIR}/src/OBJECT
34   ${PROJECT_SOURCE_DIR}/src/GEOMClient
35   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
36   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
37   ${PROJECT_SOURCE_DIR}/src/GEOMGUI
38   ${PROJECT_SOURCE_DIR}/src/GEOMBase
39   ${PROJECT_SOURCE_DIR}/src/DlgRef
40   ${PROJECT_BINARY_DIR}/src/DlgRef
41   ${CMAKE_CURRENT_SOURCE_DIR}
42   )
43
44 # additional preprocessor / compiler flags
45 ADD_DEFINITIONS(
46   ${OpenCASCADE_DEFINITIONS}
47   ${OMNIORB_DEFINITIONS}
48   ${QT_DEFINITIONS}
49   )
50
51 # libraries to link to
52 SET(_link_LIBRARIES
53   GEOMObject
54   GEOMClient
55   GEOMUtils
56   GEOMImpl
57   GEOM
58   GEOMBase
59   DlgRef
60   )
61
62 # --- headers ---
63
64 SET(BasicGUI_HEADERS
65   BasicGUI.h
66   BasicGUI_ArcDlg.h
67   BasicGUI_CircleDlg.h
68   BasicGUI_CurveDlg.h
69   BasicGUI_EllipseDlg.h
70   BasicGUI_LineDlg.h
71   BasicGUI_MarkerDlg.h
72   BasicGUI_PlaneDlg.h
73   BasicGUI_PointDlg.h
74   BasicGUI_VectorDlg.h
75   BasicGUI_ParamCurveWidget.h
76   )
77
78 # header files / to be processed by moc
79 SET(_moc_HEADERS
80   BasicGUI_PointDlg.h
81   BasicGUI_LineDlg.h
82   BasicGUI_CircleDlg.h
83   BasicGUI_EllipseDlg.h
84   BasicGUI_ArcDlg.h
85   BasicGUI_VectorDlg.h
86   BasicGUI_PlaneDlg.h
87   BasicGUI_CurveDlg.h
88   BasicGUI_MarkerDlg.h
89   BasicGUI_ParamCurveWidget.h
90   )
91
92 # --- sources ---
93
94 # sources / moc wrappings
95 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
96
97 SET(BasicGUI_SOURCES
98   BasicGUI.cxx
99   BasicGUI_PointDlg.cxx
100   BasicGUI_LineDlg.cxx
101   BasicGUI_CircleDlg.cxx
102   BasicGUI_EllipseDlg.cxx
103   BasicGUI_ArcDlg.cxx
104   BasicGUI_VectorDlg.cxx
105   BasicGUI_PlaneDlg.cxx
106   BasicGUI_CurveDlg.cxx
107   BasicGUI_MarkerDlg.cxx
108   BasicGUI_ParamCurveWidget.cxx
109   ${_moc_SOURCES}
110   )
111
112 # --- rules ---
113
114 ADD_LIBRARY(BasicGUI ${BasicGUI_SOURCES})
115 TARGET_LINK_LIBRARIES(BasicGUI ${_link_LIBRARIES})
116 INSTALL(TARGETS BasicGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})