project(kde4-splash-mga) cmake_minimum_required(VERSION 2.6) cmake_policy(SET CMP0005 NEW) set(kde4-splash-mga_SRCS main.cpp mainwidget.cpp themesettings.cpp imageloader.cpp animateditem.cpp application.cpp animatedstatus.cpp) find_package(KDE4 REQUIRED) find_package(Qt4) set(QT_USE_QTSVG 1) include(KDE4Defaults) include(MacroLibrary) include(${QT_USE_FILE}) add_subdirectory(po) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDE_DIRS} ${KDE4_INCLUDES}) add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) QT4_WRAP_CPP(kde4-splash-mga_MOC_SRCS mainwidget.h animateditem.h application.h animatedstatus.h) add_executable(kde4-splash-mga MACOSX_BUNDLE ${kde4-splash-mga_SRCS} ${kde4-splash-mga_MOC_SRCS}) target_link_libraries(kde4-splash-mga ${QT_LIBRARIES} ${KDE4_KDEUI_LIBS}) install(TARGETS kde4-splash-mga DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)