summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: fd9195699fca69e463df951bcc799967e66a0007 (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
project(simple-ccsm-kde)

find_package(KDE4 REQUIRED)
include(KDE4Defaults)
include(MacroLibrary)

include(UsePkgConfig)
pkgconfig(libcompizconfig COMPIZCONFIG_INCLUDES COMPIZCONFIG_LINK_DIR COMPIZCONFIG_LDFLAGS COMPIZCONFIG_CFLAGS)
if( NOT COMPIZCONFIG_LDFLAGS )
    message(FATAL_ERROR libcompizconfig not found)
endif( NOT COMPIZCONFIG_LDFLAGS )

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}
    ${KDE4_INCLUDES} ${KEPHAL_INCLUDE_DIR} ${COMPIZCONFIG_INCLUDES})

set(simple_ccsm_kde_SRCS main.cpp dialog.cpp monitor.cpp buttondialog.cpp)
kde4_add_ui_files(simple_ccsm_kde_SRCS ui.ui buttondialog.ui)

kde4_add_executable(simple-ccsm-kde ${simple_ccsm_kde_SRCS})
target_link_libraries(simple-ccsm-kde ${KDE4_KDEUI_LIBS} ${COMPIZCONFIG_LDFLAGS})

install(TARGETS simple-ccsm-kde ${INSTALL_TARGETS_DEFAULT_ARGS} )

file(GLOB profile_file "profiles/*.profile")
install( FILES ${profile_file}
    DESTINATION ${DATA_INSTALL_DIR}/simple-ccsm-kde/profiles )
install(FILES simple-ccsm-kde.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})