Added GPLv3 headers all over the place.
[fail.git] / src / gui / tool / CMakeLists.txt
blob884161ee590abfd25bb10c76edb8a24fa678454b
2 #   Fail game engine
3 #   Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
4
5 #   This file is part of Fail.
7 #   Fail is free software; you can redistribute it and/or modify
8 #   it under the terms of the GNU General Public License version 3
9 #   as published by the Free Software Foundation.
11 #   Fail is distributed in the hope that it will be useful,
12 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #   GNU General Public License for more details.
16 #   You should have received a copy of the GNU General Public License
17 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 find_package( KDE4 REQUIRED )
20 find_package( KDevPlatform REQUIRED )
22 # Sigh... Why do people define functions that returns things like "const char"?
23 # Now I have to disable a warning that pops all over the place in Qt headers.
24 add_definitions( ${KDE4_ENABLE_EXCEPTIONS} -Wno-return-type )
26 include_directories(
27         ${QT_INCLUDES}
28         ${KDE4_INCLUDES}
29         ${KDEVPLATFORM_INCLUDE_DIR}/sublime
32 link_directories( ${QT_LIBRARY_DIR} )
34 FAILIT( guitool.fidl fail::gui::tool )
35 QT_WRAP_CPP( faguitool MOC_FILES Button.h )
37 failBuildLibrary( gui/tool
38         Factory.cpp
39         Widget.cpp
40         SimpleContainer.cpp
41         HGroup.cpp
42         VGroup.cpp
43         Button.cpp
44         Application.cpp
45         MainWindow.cpp
46         Area.cpp
47         Document.cpp
48         RenderView.cpp
49         module_fail-gui-tool.h
50         ${MOC_FILES}
53 target_link_libraries( flguitool
54         flscenegraph
55         ${QT_QTCORE_LIBRARY}
56         ${QT_QTGUI_LIBRARY}
57         ${QT_QTOPENGL_LIBRARY}
58         ${KDE4_KDEUI_LIBS}
59         ${KDEVPLATFORM_SUBLIME_LIBRARY}