]> SALOME platform Git repositories - modules/gui.git/blob - src/SUIT/CMakeLists.txt
Salome HOME
e2f2c98e2c922003b306d475b11b63572fc7524b
[modules/gui.git] / src / SUIT / CMakeLists.txt
1 # Copyright (C) 2012  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(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
21
22 INCLUDE_DIRECTORIES(
23   ${QT_INCLUDE_DIRS}
24   ${CMAKE_CURRENT_SOURCE_DIR}
25   ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
26   ${CMAKE_CURRENT_SOURCE_DIR}/../ObjBrowser
27 )
28
29 SET(COMMON_LIBS
30   qtx
31   ObjBrowser
32   ${QT_LIBS}
33   ${PLATFORM_LIBS}
34 )
35 SET(COMMON_FLAGS "${PLATFORM_DEFINITIONS}")
36 IF(ENABLE_TESTRECORDER)
37   SET(COMMON_FLAGS "${COMMON_FLAGS} -DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
38   SET(COMMON_LIBS ${COMMON_LIBS} ${TESTRECORDER_LIBS})
39 ENDIF(ENABLE_TESTRECORDER)
40
41 SET(GUI_HEADERS 
42   SUIT_Accel.h  
43   SUIT_ActionOperation.h 
44   SUIT_Application.h 
45   SUIT_DataBrowser.h 
46   SUIT_DataObject.h 
47   SUIT_Desktop.h 
48   SUIT_LicenseDlg.h
49   SUIT_FileDlg.h 
50   SUIT_Operation.h 
51   SUIT_PopupClient.h 
52   SUIT_PreferenceMgr.h 
53   SUIT_SelectionMgr.h 
54   SUIT_Selector.h 
55   SUIT_Session.h 
56   SUIT_Study.h
57   SUIT_TreeModel.h 
58   SUIT_ViewManager.h 
59   SUIT_ViewModel.h 
60   SUIT_ViewWindow.h 
61   SUIT_ShortcutMgr.h
62   SUIT_CameraProperties.h
63 )
64 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
65
66 SET(suit_SOURCES
67   SUIT_Accel.cxx
68   SUIT_ActionOperation.cxx
69   SUIT_Application.cxx
70   SUIT_DataBrowser.cxx
71   SUIT_DataObject.cxx
72   SUIT_DataObjectIterator.cxx
73   SUIT_DataObjectKey.cxx
74   SUIT_DataOwner.cxx
75   SUIT_Desktop.cxx
76   SUIT_ExceptionHandler.cxx
77   SUIT_FileDlg.cxx
78   SUIT_LicenseDlg.cxx
79   SUIT_FileValidator.cxx
80   SUIT_MessageBox.cxx
81   SUIT_Operation.cxx
82   SUIT_OverrideCursor.cxx
83   SUIT_PopupClient.cxx
84   SUIT_PreferenceMgr.cxx
85   SUIT_ResourceMgr.cxx
86   SUIT_SelectionFilter.cxx
87   SUIT_SelectionMgr.cxx
88   SUIT_Selector.cxx
89   SUIT_Session.cxx
90   SUIT_Study.cxx
91   SUIT_Tools.cxx
92   SUIT_TreeModel.cxx
93   SUIT_ViewManager.cxx
94   SUIT_ViewModel.cxx
95   SUIT_ViewWindow.cxx
96   SUIT_ShortcutMgr.cxx
97   SUIT_CameraProperties.cxx
98 )
99 SET(GUITS_SOURCES
100   resources/SUIT_msg_en.ts
101   resources/SUIT_msg_fr.ts
102   resources/SUIT_images.ts
103 )
104
105 ADD_LIBRARY(suit SHARED ${suit_SOURCES} ${GUI_HEADERS_MOC})
106 SET_TARGET_PROPERTIES(suit PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
107 TARGET_LINK_LIBRARIES(suit ${COMMON_LIBS})
108 INSTALL(TARGETS suit DESTINATION ${GUI_salomelib_LIBS})
109
110 FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
111 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
112 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
113
114 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
115 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})
116