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