Salome HOME
Copyright update: 2016
[plugins/canrecplugin.git] / src / CANRECPLUGINGUI / CMakeLists.txt
1 # Copyright (C) 2014-2016  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 INCLUDE(${QT_USE_FILE})
22
23 # --- options ---
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${CAS_INCLUDE_DIRS}
27   ${QT_INCLUDES}
28   ${OMNIORB_INCLUDE_DIR}
29   ${PYTHON_INCLUDES}
30   ${KERNEL_INCLUDE_DIRS}
31   ${GUI_INCLUDE_DIRS}
32   ${GEOM_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/idl
34 )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(
38   ${CAS_DEFINITIONS}
39   ${QT_DEFINITIONS}
40   ${OMNIORB_DEFINITIONS}
41   ${GUI_DEFINITIONS}
42 )
43
44 # libraries to link to
45 SET(_link_LIBRARIES
46 #  ${GUI_SalomeApp}
47 #  ${GUI_qtx}
48 #  ${GUI_suit}
49 #  ${GUI_SalomeObject}
50 #  ${GUI_LightApp}
51 #  ${CAS_KERNEL}
52 #  ${GEOM_GEOM}
53   ${GEOM_GEOMBase}
54   SalomeIDLCANRECPlugin
55 )
56
57 # --- headers ---
58
59 # header files / to be processed by moc
60 SET(_moc_HEADERS
61   CANRECPluginGUI_CanonicalRecognitionDlg.h
62 )
63
64 # header files / no moc processed
65 SET(_other_HEADERS
66   CANRECPluginGUI.h
67 )
68
69 SET(CANRECPluginGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
70
71 # --- sources ---
72
73 # sources / moc wrappings
74 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
75
76 # sources / static
77 SET(_other_SOURCES
78   CANRECPluginGUI.cxx
79   CANRECPluginGUI_CanonicalRecognitionDlg.cxx
80 )
81
82 # --- resources ---
83
84 # resource files / to be processed by lrelease
85 SET(_ts_RESOURCES
86   resources/CANRECPlugin_images.ts
87   resources/CANRECPlugin_msg_en.ts
88   resources/CANRECPlugin_msg_fr.ts
89   resources/CANRECPlugin_msg_ja.ts
90 )
91
92 # sources / to compile
93 SET(CANRECPluginGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
94
95 # --- rules ---
96
97 ADD_LIBRARY(CANRECPluginGUI ${CANRECPluginGUI_SOURCES})
98 TARGET_LINK_LIBRARIES(CANRECPluginGUI ${_link_LIBRARIES} )
99 INSTALL(TARGETS CANRECPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
100
101 INSTALL(FILES ${CANRECPluginGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
102
103 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_CANRECPLUGIN_INSTALL_RES_DATA}")