From bed6027cf05c2b94b573c5afe5be708482e1577d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 13 Mar 2022 19:42:14 +0100 Subject: 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. --- CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'CMakeLists.txt') 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") -- cgit v1.2.3