Use CMake option macros.

This commit is contained in:
Bartosz Taudul
2026-03-31 22:33:17 +02:00
parent 5877db5411
commit af5f1c4d52

View File

@@ -1,11 +1,13 @@
cmake_minimum_required(VERSION 3.25)
option(NO_FILESELECTOR "Disable the file selector" OFF)
option(GTK_FILESELECTOR "Use the GTK file selector on Linux instead of the xdg-portal one" OFF)
option(LEGACY "Instead of Wayland, use the legacy X11 backend on Linux" OFF)
option(NO_STATISTICS "Disable calculation of statistics" OFF)
option(SELF_PROFILE "Enable self-profiling" OFF)
set(SANITIZE "" CACHE STRING "Sanitizer parameters")
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/options.cmake)
set_option(NO_FILESELECTOR "Disable the file selector" OFF)
set_option(GTK_FILESELECTOR "Use the GTK file selector on Linux instead of the xdg-portal one" OFF)
set_option(LEGACY "Instead of Wayland, use the legacy X11 backend on Linux" OFF)
set_option(NO_STATISTICS "Disable calculation of statistics" OFF)
set_option(SELF_PROFILE "Enable self-profiling" OFF)
set_option_value(SANITIZE "Sanitizer parameters" "")
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake)