Salome HOME
8aa1a52d38619658ee08b3ea1a11f00e0d3fccef
[modules/gui.git] / src / HelpBrowser / CMakeLists.txt
1 # Copyright (C) 2012-2022  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, 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
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDES} 
27   ${PROJECT_SOURCE_DIR}/src/Qtx
28 )
29
30 # additional preprocessor / compiler flags
31 ADD_DEFINITIONS(
32   ${QT_DEFINITIONS}
33 )
34
35 # libraries to link to
36 SET(_link_LIBRARIES
37   ${QT_LIBRARIES}
38   qtx
39 )
40
41 # --- headers ---
42
43 SET(_moc_HEADERS
44   qtlocalpeer.h
45   qtsingleapplication.h
46   HelpBrowser_Application.h
47 )
48
49 # --- resources ---
50
51 # resource files / to be processed by rcc
52 SET(_rcc_RESOURCES HelpBrowser.qrc)
53
54 # --- sources ---
55
56 # sources / moc wrappings
57 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
58
59 # sources / rcc wrappings
60 QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
61
62 # sources / to compile
63 SET(_other_SOURCES
64   qtlocalpeer.cpp
65   qtsingleapplication.cpp
66   HelpBrowser_Application.cxx
67   HelpBrowser.cxx
68 )
69
70 # sources / to compile
71 SET(HelpBrowser_SOURCES
72   ${_other_SOURCES}
73   ${_moc_SOURCES}
74   ${_rcc_SOURCES}
75 )
76
77 # --- rules ---
78
79 ADD_EXECUTABLE(HelpBrowser ${HelpBrowser_SOURCES})
80 TARGET_LINK_LIBRARIES(HelpBrowser ${_link_LIBRARIES})
81 INSTALL(TARGETS HelpBrowser EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
82 INSTALL(FILES qt.conf DESTINATION ${SALOME_INSTALL_BINS})