265ea9faa037b9bbca5d2e04cf56f6f81b24c4d7
[colorflood] / colorflood / src / CMakeLists.txt
1 # Copyright 2010 Serge Ziryukin <ftrvxmtrx@gmail.com>
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; version 2 of the License.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 # GNU General Public License for more details.
11
12 set(src
13   colorbuttons.cpp
14   colorscheme.cpp
15   field.cpp
16   main.cpp
17   window.cpp
18   qrc_colorflood.cxx
19   )
20
21 set(moc
22   colorbuttons.hpp
23   field.hpp
24   #fullscreenexitbutton.hpp
25   window.hpp
26   )
27
28 include(FindQt4)
29 find_package(Qt4 4.6.2 COMPONENTS QtCore QtGui REQUIRED)
30 include(${QT_USE_FILE})
31
32 qt4_wrap_cpp(moc_src ${moc})
33 qt4_add_translation(colorflood.ts)
34 qt4_add_resources(resources colorflood.qrc)
35
36 add_definitions(-Wall -Wextra)
37 add_executable(colorflood ${moc_src} ${src} ${res})
38 target_link_libraries(colorflood ${QT_LIBRARIES})