X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=colorflood%2Fsrc%2FCMakeLists.txt;h=0fd71ef2c52b78351c06a6f98e40021a8b5fcf63;hb=c67d5554ce76c3337e7b1b6d55297b0109abd0c7;hp=e3d27788e9ae62d93fd66f7abc901e582375d4cf;hpb=83a85755d88a8e1abd737629cb9f59c3c9f1d55e;p=colorflood diff --git a/colorflood/src/CMakeLists.txt b/colorflood/src/CMakeLists.txt index e3d2778..0fd71ef 100644 --- a/colorflood/src/CMakeLists.txt +++ b/colorflood/src/CMakeLists.txt @@ -10,13 +10,20 @@ # GNU General Public License for more details. set(src + colorbutton.cpp + colorbuttons.cpp + colorscheme.cpp field.cpp main.cpp window.cpp + qrc_colorflood.cxx ) set(moc + colorbutton.hpp + colorbuttons.hpp field.hpp + fullscreenexitbutton.hpp window.hpp ) @@ -24,7 +31,14 @@ include(FindQt4) find_package(Qt4 4.6.2 COMPONENTS QtCore QtGui REQUIRED) include(${QT_USE_FILE}) -QT4_WRAP_CPP(moc_src ${moc}) +qt4_wrap_cpp(moc_src ${moc}) +qt4_add_translation(colorflood.ts) +qt4_add_resources(resources colorflood.qrc) -add_executable(colorflood ${moc_src} ${src}) +add_definitions(-Wall -Wextra) +add_executable(colorflood ${moc_src} ${src} ${res}) target_link_libraries(colorflood ${QT_LIBRARIES}) + +install(TARGETS colorflood DESTINATION bin) +install(FILES images/icon_48x48.png DESTINATION share/icons/hicolor/48x48/apps RENAME colorflood.png) +install(FILES colorflood.desktop DESTINATION share/applications/hildon)