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