Salome HOME
Merge from V6_main 01/04/2013
[modules/gui.git] / src / SPlot2d / 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_DIRECTORIES(
21   ${CAS_INCLUDE_DIRS}
22   ${QT_INCLUDES}
23   ${Boost_INCLUDE_DIRS}
24   ${QWT_INCLUDE_DIR}
25   ${PTHREAD_INCLUDE_DIRS}
26   ${KERNEL_ROOT_DIR}/include/salome
27   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
28   ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
29   ${CMAKE_CURRENT_SOURCE_DIR}/../Plot2d
30   ${CMAKE_CURRENT_SOURCE_DIR}/../Prs
31   ${CMAKE_CURRENT_SOURCE_DIR}/../OBJECT
32 )
33
34 ADD_DEFINITIONS("${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS} ${QWT_DEFINITIONS}")
35 SET(COMMON_LIBS suit Plot2d SalomePrs SalomeObject)
36
37 SET(GUI_HEADERS   
38   SPlot2d_ViewModel.h
39   SPlot2d_ViewWindow.h
40 )
41 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
42
43 SET(SPlot2d_SOURCES
44   SPlot2d_Curve.cxx
45   SPlot2d_Histogram.cxx
46   SPlot2d_Prs.cxx
47   SPlot2d_ViewModel.cxx
48   SPlot2d_ViewWindow.cxx
49 )
50
51 ADD_LIBRARY(SPlot2d ${SPlot2d_SOURCES} ${GUI_HEADERS_MOC})
52 TARGET_LINK_LIBRARIES(SPlot2d ${COMMON_LIBS})
53 INSTALL(TARGETS SPlot2d DESTINATION ${GUI_salomelib_LIBS})
54
55 SET(COMMON_HEADERS_H 
56   SPlot2d.h
57   SPlot2d_Curve.h
58   SPlot2d_Histogram.h
59   SPlot2d_Prs.h
60   SPlot2d_ViewModel.h
61   SPlot2d_ViewWindow.h
62 )
63
64 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})