summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 5970648dccb86ed7796883b1d0fd39a96b9c1d58 (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
28
29
30
31
32
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 files  ##################################

install(TARGETS kde4-splash-mga DESTINATION   ${BIN_INSTALL_DIR})
install( FILES kde4-splash-mga.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES ksplashplugin.desktop  DESTINATION ${SERVICETYPES_INSTALL_DIR} )