build: new build option BUILD_X11 to control building of X11 backend

This commit is contained in:
sithlord48
2025-11-13 11:48:30 -05:00
committed by Nick Bolton
parent f45df39032
commit 4a67694676
7 changed files with 48 additions and 37 deletions

View File

@ -156,6 +156,12 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
# Instead use Q_SIGNAL, Q_SLOT and Q_EMIT
# prevents issues when used with glib for libportal
add_definitions(-DQT_NO_KEYWORDS)
#Options for Linux platform support
if(UNIX AND NOT APPLE)
option(BUILD_X11_SUPPORT "Build with x11 support" ON)
endif()
include(cmake/Libraries.cmake)
configure_libs()