29 lines
951 B
CMake
29 lines
951 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(ukui-kwin-effects)
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(QGSettings REQUIRED gsettings-qt)
|
|
include_directories(${QGSettings_INCLUDE_DIRS})
|
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS Core Gui)
|
|
find_package(KF5CoreAddons REQUIRED)
|
|
find_package(KF5WindowSystem REQUIRED)
|
|
|
|
get_target_property(QT_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE} IMPORTED_LOCATION)
|
|
macro(query_qmake args output)
|
|
exec_program(${QT_QMAKE_EXECUTABLE} ARGS -query ${args} OUTPUT_VARIABLE ${output} RETURN_VALUE exitCode)
|
|
|
|
if(NOT ${exitCode} EQUAL 0)
|
|
message(FATAL_ERROR "exec ${QT_QMAKE_EXECUTABLE} failed, with args: ${args}, error message: ${output}")
|
|
endif()
|
|
endmacro()
|
|
|
|
query_qmake("QT_INSTALL_PLUGINS" QT_INSTALL_PLUGINS)
|
|
message("QT_INSTALL_PLUGINS=${QT_INSTALL_PLUGINS}")
|
|
|
|
set(INSTALL_PATH "${QT_INSTALL_PLUGINS}/kwin/effects/plugins")
|
|
|
|
|
|
add_subdirectory(windowsview)
|
|
add_subdirectory(windowswitchers)
|