remove old stuff
[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   colorbutton.cpp
14   colorbuttons.cpp
15   colorscheme.cpp
16   field.cpp
17   main.cpp
18   window.cpp
19   qrc_colorflood.cxx
20   )
21
22 set(moc
23   colorbutton.hpp
24   colorbuttons.hpp
25   field.hpp
26   fullscreenexitbutton.hpp
27   window.hpp
28   )
29
30 include(FindQt4)
31 find_package(Qt4 4.6.2 COMPONENTS QtCore QtGui REQUIRED)
32 include(${QT_USE_FILE})
33
34 qt4_wrap_cpp(moc_src ${moc})
35 qt4_add_translation(colorflood.ts)
36 qt4_add_resources(resources colorflood.qrc)
37
38 add_definitions(-Wall -Wextra)
39 add_executable(colorflood ${moc_src} ${src} ${res})
40 target_link_libraries(colorflood ${QT_LIBRARIES})