Salome HOME
Merge Qt5 porting.
[modules/geom.git] / src / BasicGUI / CMakeLists.txt
1 # Copyright (C) 2012-2015  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   ${VTK_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${CAS_INCLUDE_DIRS}
30   ${KERNEL_INCLUDE_DIRS}
31   ${GUI_INCLUDE_DIRS}
32   ${PROJECT_BINARY_DIR}/idl
33   ${PROJECT_BINARY_DIR}
34   ${PROJECT_SOURCE_DIR}/src/OBJECT
35   ${PROJECT_SOURCE_DIR}/src/GEOMClient
36   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
37   ${PROJECT_SOURCE_DIR}/src/GEOMImpl
38   ${PROJECT_SOURCE_DIR}/src/GEOMGUI
39   ${PROJECT_SOURCE_DIR}/src/GEOMBase
40   ${PROJECT_SOURCE_DIR}/src/DlgRef
41   ${PROJECT_BINARY_DIR}/src/DlgRef
42   ${CMAKE_CURRENT_SOURCE_DIR}
43   )
44
45 # additional preprocessor / compiler flags
46 ADD_DEFINITIONS(
47   ${CAS_DEFINITIONS}
48   ${OMNIORB_DEFINITIONS}
49   ${QT_DEFINITIONS}
50   )
51
52 # libraries to link to
53 SET(_link_LIBRARIES
54   GEOMObject
55   GEOMClient
56   GEOMUtils
57   GEOMImpl
58   GEOM
59   GEOMBase
60   DlgRef
61   )
62
63 # --- headers ---
64
65 SET(BasicGUI_HEADERS
66   BasicGUI.h
67   BasicGUI_ArcDlg.h
68   BasicGUI_CircleDlg.h
69   BasicGUI_CurveDlg.h
70   BasicGUI_EllipseDlg.h
71   BasicGUI_LineDlg.h
72   BasicGUI_MarkerDlg.h
73   BasicGUI_PlaneDlg.h
74   BasicGUI_PointDlg.h
75   BasicGUI_VectorDlg.h
76   BasicGUI_ParamCurveWidget.h
77   )
78
79 # header files / to be processed by moc
80 SET(_moc_HEADERS
81   BasicGUI_PointDlg.h
82   BasicGUI_LineDlg.h
83   BasicGUI_CircleDlg.h
84   BasicGUI_EllipseDlg.h
85   BasicGUI_ArcDlg.h
86   BasicGUI_VectorDlg.h
87   BasicGUI_PlaneDlg.h
88   BasicGUI_CurveDlg.h
89   BasicGUI_MarkerDlg.h
90   BasicGUI_ParamCurveWidget.h
91   )
92
93 # --- sources ---
94
95 # sources / moc wrappings
96 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
97
98 SET(BasicGUI_SOURCES
99   BasicGUI.cxx
100   BasicGUI_PointDlg.cxx
101   BasicGUI_LineDlg.cxx
102   BasicGUI_CircleDlg.cxx
103   BasicGUI_EllipseDlg.cxx
104   BasicGUI_ArcDlg.cxx
105   BasicGUI_VectorDlg.cxx
106   BasicGUI_PlaneDlg.cxx
107   BasicGUI_CurveDlg.cxx
108   BasicGUI_MarkerDlg.cxx
109   BasicGUI_ParamCurveWidget.cxx
110   ${_moc_SOURCES}
111   )
112
113 # --- rules ---
114
115 ADD_LIBRARY(BasicGUI ${BasicGUI_SOURCES})
116 TARGET_LINK_LIBRARIES(BasicGUI ${_link_LIBRARIES})
117 INSTALL(TARGETS BasicGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})