mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 02:42:51 +00:00
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
project(polkit-kde-kcmodules-1)
|
|
|
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
|
|
find_package(KDE4 REQUIRED)
|
|
include(KDE4Defaults)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
function(dbus_add_activation_system_service _sources)
|
|
pkg_search_module( DBUS dbus-1 )
|
|
foreach (_i ${_sources})
|
|
get_filename_component(_service_file ${_i} ABSOLUTE)
|
|
string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
|
|
set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_output_file})
|
|
configure_file(${_service_file} ${_target})
|
|
install(FILES ${_target} DESTINATION ${KDE4_DBUS_SYSTEM_SERVICES_INSTALL_DIR} )
|
|
endforeach (_i ${ARGN})
|
|
endfunction(dbus_add_activation_system_service _sources)
|
|
|
|
set(POLKITQT-1_MIN_VERSION "0.103.0")
|
|
find_package(PolkitQt-1 REQUIRED)
|
|
|
|
include(FindPkgConfig)
|
|
|
|
include_directories(${KDE4_INCLUDES}
|
|
${POLKITQT-1_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/common)
|
|
|
|
add_subdirectory(common)
|
|
add_subdirectory(polkitactions)
|
|
add_subdirectory(polkitconfig)
|
|
add_subdirectory(helper)
|
|
|
|
install(
|
|
FILES settings-system-policies.desktop
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|