]> SALOME platform Git repositories - modules/geom.git/blob - src/CurveCreator/CMakeLists.txt
Salome HOME
Merge from BR_hydro 30/10/2013
[modules/geom.git] / src / CurveCreator / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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(${QT_USE_FILE})
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDE_DIRS}
27   ${PTHREAD_INCLUDE_DIR}
28   ${CAS_INCLUDE_DIRS}
29   ${KERNEL_INCLUDE_DIRS}
30   ${GUI_INCLUDE_DIRS}
31   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
32 )
33
34 # additional preprocessor / compiler flags
35 ADD_DEFINITIONS(
36   ${CAS_DEFINITIONS}
37   ${QT_DEFINITIONS}
38 )
39
40 # libraries to link to
41 SET(_link_LIBRARIES
42   GEOMUtils
43 )
44
45 IF(SALOME_BUILD_GUI)
46   LIST(APPEND _link_LIBRARIES
47     ${GUI_qtx}
48     ${GUI_suit}
49   )
50 ENDIF(SALOME_BUILD_GUI)
51
52 # --- headers ---
53
54 IF(SALOME_BUILD_GUI)
55   # header files / to be processed by moc
56   SET(_moc_HEADERS
57     CurveCreator_NewSectionDlg.h
58     CurveCreator_NewPointDlg.h
59     CurveCreator_TreeView.h
60 #    CurveCreator_UndoOptsDlg.h
61     CurveCreator_Widget.h
62   )
63 ENDIF(SALOME_BUILD_GUI)
64
65 # header files / no processing
66 SET(_other_HEADERS
67   CurveCreator.hxx
68   CurveCreator_Curve.hxx
69   CurveCreator_CurveEditor.hxx
70   CurveCreator_Diff.hxx
71   CurveCreator_ICurve.hxx
72   CurveCreator_Listener.hxx
73   CurveCreator_Macro.hxx
74   CurveCreator_Operation.hxx
75   CurveCreator_Section.hxx
76 )
77
78 # header files / to install
79 SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
80
81 # --- sources ---
82
83 IF(SALOME_BUILD_GUI)
84   # sources / moc wrappings
85   QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
86 ENDIF(SALOME_BUILD_GUI)
87
88 # sources / static
89 SET(_other_SOURCES
90   CurveCreator_Curve.cxx
91   CurveCreator_CurveEditor.cxx
92   CurveCreator_Diff.cxx
93   CurveCreator_ICurve.cxx
94   CurveCreator_Operation.cxx
95 )
96 IF(SALOME_BUILD_GUI)
97   LIST(APPEND _other_SOURCES
98     CurveCreator_NewPointDlg.cxx
99     CurveCreator_NewSectionDlg.cxx
100     CurveCreator_TreeView.cxx
101 #    CurveCreator_UndoOptsDlg.cxx
102     CurveCreator_Widget.cxx
103   )
104 ENDIF(SALOME_BUILD_GUI)
105
106 # sources / to compile
107 SET(CurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
108
109 # --- rules ---
110
111 ADD_LIBRARY(CurveCreator ${CurveCreator_SOURCES})
112 TARGET_LINK_LIBRARIES(CurveCreator ${_link_LIBRARIES})
113 INSTALL(TARGETS CurveCreator EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
114
115 INSTALL(FILES ${CurveCreator_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
116