[client] cmake: list enabled features in configure output

This commit is contained in:
Geoffrey McRae 2019-03-28 20:27:38 +11:00
parent ee09594190
commit 8eed25b469
2 changed files with 9 additions and 1 deletions

View file

@ -1 +1 @@
a12-120-g66c3c0115f+1
a12-121-gee09594190+1

View file

@ -5,6 +5,7 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
include(GNUInstallDirs)
include(CheckCCompilerFlag)
include(FeatureSummary)
option(OPTIMIZE_FOR_NATIVE "Build with -march=native" ON)
if(OPTIMIZE_FOR_NATIVE)
@ -15,8 +16,13 @@ if(OPTIMIZE_FOR_NATIVE)
endif()
option(ENABLE_OPENGL "Enable the OpenGL renderer" ON)
add_feature_info(ENABLE_OPENGL ENABLE_OPENGL "Legacy OpenGL renderer.")
option(ENABLE_EGL "Enable the EGL renderer" ON)
add_feature_info(ENABLE_EGL ENABLE_EGL "EGL renderer.")
option(ENABLE_CB_X11 "Enable X11 clipboard integration" ON)
add_feature_info(ENABLE_CB_X11 ENABLE_CB_X11 "X11 Clipboard Integration.")
add_compile_options(
"-Wall"
@ -85,3 +91,5 @@ target_link_libraries(looking-glass-client
clipboards
fonts
)
feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)