Salome HOME
Merge remote branch 'origin/V7_dev'
[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(UseQtExt)
21
22 # --- options ---
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${CAS_INCLUDE_DIRS}
26   ${QT_INCLUDES}
27   ${OMNIORB_INCLUDE_DIR}
28   ${PYTHON_INCLUDES}
29   ${KERNEL_INCLUDE_DIRS}
30   ${GUI_INCLUDE_DIRS}
31   ${GEOM_INCLUDE_DIRS}
32   ${PROJECT_BINARY_DIR}/idl
33 )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(
37   ${CAS_DEFINITIONS}
38   ${QT_DEFINITIONS}
39   ${OMNIORB_DEFINITIONS}
40   ${GUI_DEFINITIONS}
41 )
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   ${GEOM_GEOMBase}
46   SalomeIDLCANRECPlugin
47 )
48
49 # --- headers ---
50
51 # header files / to be processed by moc
52 SET(_moc_HEADERS
53   CANRECPluginGUI_CanonicalRecognitionDlg.h
54 )
55
56 # header files / no moc processed
57 SET(_other_HEADERS
58   CANRECPluginGUI.h
59 )
60
61 SET(CANRECPluginGUI_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
62
63 # --- sources ---
64
65 # sources / moc wrappings
66 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
67
68 # sources / static
69 SET(_other_SOURCES
70   CANRECPluginGUI.cxx
71   CANRECPluginGUI_CanonicalRecognitionDlg.cxx
72 )
73
74 # --- resources ---
75
76 # resource files / to be processed by lrelease
77 SET(_ts_RESOURCES
78   resources/CANRECPlugin_images.ts
79   resources/CANRECPlugin_msg_en.ts
80   resources/CANRECPlugin_msg_fr.ts
81   resources/CANRECPlugin_msg_ja.ts
82 )
83
84 # sources / to compile
85 SET(CANRECPluginGUI_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
86
87 # --- rules ---
88
89 ADD_LIBRARY(CANRECPluginGUI ${CANRECPluginGUI_SOURCES})
90 TARGET_LINK_LIBRARIES(CANRECPluginGUI ${_link_LIBRARIES} )
91 INSTALL(TARGETS CANRECPluginGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
92
93 INSTALL(FILES ${CANRECPluginGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
94
95 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_CANRECPLUGIN_INSTALL_RES_DATA}")