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

add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

include(KDE4Defaults)
include(FindPkgConfig)
include(MacroLibrary)

set (CMAKE_SKIP_RPATH FALSE)

option (COMPIZ_BUILD_WITH_RPATH "Leave as ON unless building packages" ON)
set (COMPIZ_DESTDIR ${COMPIZ_DESTDIR} CACHE STRING "Leave blank unless building packages")

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 ${COMPIZ_DESTDIR}${CCS_LIBDIR}/compizconfig/backends)