lxqt-admin-packaging/CMakeLists.txt
Alf Gaida bdf997572e
Adding upstream version 0.11.1.
Signed-off-by: Alf Gaida <agaida@siduction.org>
2017-01-02 01:24:22 +01:00

27 lines
966 B
CMake

cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(lxqt-admin)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
# Set default installation paths
set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "Installation path for libraries")
find_package(Qt5Widgets REQUIRED QUIET)
find_package(lxqt REQUIRED QUIET)
find_package(KF5WindowSystem REQUIRED QUIET)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(LXQtTranslate)
if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
message(WARNING "${CMAKE_SYSTEM_NAME} is not supported by lxqt-admin-user")
message(WARNING "${CMAKE_SYSTEM_NAME} is not supported by lxqt-admin-time")
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
add_subdirectory(lxqt-admin-user)
message(WARNING "${CMAKE_SYSTEM_NAME} is not supported by lxqt-admin-time")
else()
add_subdirectory(lxqt-admin-user)
add_subdirectory(lxqt-admin-time)
endif()