summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-13 19:42:14 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-03-13 21:56:05 +0100
commitbed6027cf05c2b94b573c5afe5be708482e1577d (patch)
tree5b9e7dc896f2a74a0eb9d58c7be7d16d31b6677f /CMakeLists.txt
parent2500899b09d422776d0cb1760b5438d30959128a (diff)
CMake: Improve configuration summary, add fl_debug_pkg macro
fl_debug_pkg(...) can be used to display CMake variables set by executing pkg_check_modules(). This is for CMake debugging only. The CMake configuration summary displays configuration options of Wayland, Pango, Xft, and Cairo configuration.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c8f3d160..c871386e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,7 @@ project (FLTK VERSION 1.4.0)
#######################################################################
include (CMake/fl_debug_var.cmake)
+include (CMake/fl_debug_pkg.cmake)
include (CMake/fl_add_library.cmake)
include (CMake/compatibility.cmake)
@@ -237,5 +238,34 @@ else ()
message (STATUS " ZLIB = System")
endif ()
+if (UNIX)
+
+ if (OPTION_USE_WAYLAND)
+ message (STATUS "Use Wayland: Yes")
+ else ()
+ message (STATUS "Use Wayland: No")
+ endif ()
+
+ if (USE_PANGO)
+ message (STATUS "Use Pango: Yes")
+ else (USE_PANGO)
+ message (STATUS "Use Pango: No")
+ if (USE_XFT)
+ message (STATUS "Use Xft: Yes")
+ else ()
+ message (STATUS "Use Xft: No")
+ endif (USE_XFT)
+ endif (USE_PANGO)
+
+endif (UNIX)
+
+if (FLTK_HAVE_CAIROEXT)
+ message (STATUS "Cairo support: Yes (extended)")
+elseif (FLTK_HAVE_CAIRO)
+ message (STATUS "Cairo support: Yes (standard)")
+else ()
+ message (STATUS "Cairo support: No")
+endif ()
+
message ("")
message (STATUS "End of Configuration Summary --\n")