summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: c72963e5fdf2862e309bdee5effef43d1779961b (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
find_package(KDE4 REQUIRED)
find_package (Compiz REQUIRED)

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

include(KDE4Defaults)
include(FindPkgConfig)
include(MacroLibrary)
include(CompizCommon)
include(CompizPackage)

pkg_check_modules(CCS REQUIRED libcompizconfig)

QT4_ADD_DBUS_INTERFACE( kconfig4_kwin_SRCS org.kde.KWin.xml kwin_interface )


link_directories(${CCS_LIBRARY_DIRS})
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CCS_INCLUDE_DIRS})

set(kconfig4_LIB_SRCS kconfig_backend.cpp ${kconfig4_kwin_SRCS})

kde4_add_library(kconfig4 SHARED ${kconfig4_LIB_SRCS})

target_link_libraries(kconfig4 ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${CCS_LIBRARIES} X11)

install(TARGETS kconfig4 DESTINATION ${CCS_LIBDIR}/compizconfig/backends)