Salome HOME
IMP: GUI: Japanese translations
[modules/gui.git] / src / SUIT / 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(UseQt4Ext)
21
22 INCLUDE_DIRECTORIES(
23   ${QT_INCLUDES}
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_LIBRARIES}
33   ${PLATFORM_LIBS}
34 )
35 IF(ENABLE_TESTRECORDER)
36   ADD_DEFINITIONS("-DENABLE_TESTRECORDER ${TESTRECORDER_DEFINITIONS}")
37   SET(COMMON_LIBS ${COMMON_LIBS} ${TESTRECORDER_LIBS})
38 ENDIF(ENABLE_TESTRECORDER)
39
40 SET(GUI_HEADERS 
41   SUIT_Accel.h  
42   SUIT_ActionOperation.h 
43   SUIT_Application.h 
44   SUIT_DataBrowser.h 
45   SUIT_DataObject.h 
46   SUIT_Desktop.h 
47   SUIT_LicenseDlg.h
48   SUIT_FileDlg.h 
49   SUIT_Operation.h 
50   SUIT_PopupClient.h 
51   SUIT_PreferenceMgr.h 
52   SUIT_SelectionMgr.h 
53   SUIT_Selector.h 
54   SUIT_Session.h 
55   SUIT_Study.h
56   SUIT_TreeModel.h 
57   SUIT_ViewManager.h 
58   SUIT_ViewModel.h 
59   SUIT_ViewWindow.h 
60   SUIT_ShortcutMgr.h
61   SUIT_CameraProperties.h
62 )
63 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
64
65 SET(suit_SOURCES
66   SUIT_Accel.cxx
67   SUIT_ActionOperation.cxx
68   SUIT_Application.cxx
69   SUIT_DataBrowser.cxx
70   SUIT_DataObject.cxx
71   SUIT_DataObjectIterator.cxx
72   SUIT_DataObjectKey.cxx
73   SUIT_DataOwner.cxx
74   SUIT_Desktop.cxx
75   SUIT_ExceptionHandler.cxx
76   SUIT_FileDlg.cxx
77   SUIT_LicenseDlg.cxx
78   SUIT_FileValidator.cxx
79   SUIT_MessageBox.cxx
80   SUIT_Operation.cxx
81   SUIT_OverrideCursor.cxx
82   SUIT_PopupClient.cxx
83   SUIT_PreferenceMgr.cxx
84   SUIT_ResourceMgr.cxx
85   SUIT_SelectionFilter.cxx
86   SUIT_SelectionMgr.cxx
87   SUIT_Selector.cxx
88   SUIT_Session.cxx
89   SUIT_Study.cxx
90   SUIT_Tools.cxx
91   SUIT_TreeModel.cxx
92   SUIT_ViewManager.cxx
93   SUIT_ViewModel.cxx
94   SUIT_ViewWindow.cxx
95   SUIT_ShortcutMgr.cxx
96   SUIT_CameraProperties.cxx
97 )
98 SET(GUITS_SOURCES
99   resources/SUIT_msg_en.ts
100   resources/SUIT_msg_fr.ts
101   resources/SUIT_msg_ja.ts
102   resources/SUIT_images.ts
103 )
104
105 ADD_LIBRARY(suit ${suit_SOURCES} ${GUI_HEADERS_MOC})
106 TARGET_LINK_LIBRARIES(suit ${COMMON_LIBS})
107 INSTALL(TARGETS suit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
108
109 FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
110 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${SALOME_INSTALL_HEADERS})
111 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
112
113 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
114 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
115