summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 2afe5828f1cff99b214fe03cd255777828a8f1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
project(kde4-splash-mdv)
cmake_minimum_required(VERSION 2.6)
cmake_policy(SET CMP0005 NEW)

set(kde4-splash-mdv_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-mdv_MOC_SRCS mainwidget.h animateditem.h application.h animatedstatus.h)

add_executable(kde4-splash-mdv MACOSX_BUNDLE ${kde4-splash-mdv_SRCS} ${kde4-splash-mdv_MOC_SRCS})

target_link_libraries(kde4-splash-mdv ${QT_LIBRARIES} ${KDE4_KDEUI_LIBS})

install(TARGETS kde4-splash-mdv DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)