You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxqt-admin-packaging/CMakeLists.txt

37 lines
1.2 KiB

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)
find_package(lxqt REQUIRED)
find_package(KF5WindowSystem REQUIRED)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# Patch Version
set(LXQT_ADMIN_PATCH_VERSION 0)
set(LXQT_ADMIN_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_ADMIN_PATCH_VERSION})
add_definitions("-DLXQT_ADMIN_VERSION=\"${LXQT_ADMIN_VERSION}\"")
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()