summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-16 01:58:54 +0100
committerGitHub <noreply@github.com>2025-11-16 01:58:54 +0100
commit646bd5576497078f327f931ac5b5452d24866d2a (patch)
tree7a6060bc43cd9443639e8f3069151e224f918aa9 /src/CMakeLists.txt
parent9afe9400bd8ce79f1c96b856539d91887e0d2bb1 (diff)
Refactor large static class Fl into an expandable namespace Fl (#1325)
* Change class Fl into namespace Fl. * Untangle Fl namespace into themed headers. * cut line count of FL/Fl.H in half * FL/core subdirectory now holds short headers grouped by functionality.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f8d5299bf..63445bf48 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -189,10 +189,17 @@ if(FLTK_HAVE_CAIRO) # FLTK_OPTION_CAIRO_WINDOW or FLTK_OPTION_CAIRO_EXT
list(APPEND CPPFILES Fl_Cairo.cxx)
endif()
-# find all header files in source directory <FL/...>
+# find all header files in includes directory <FL/...>
file(GLOB
HEADER_FILES
"../FL/*.[hH]"
+ "../FL/core/*.[hH]"
+)
+
+# find all private header files in source directory "src/..."
+file(GLOB
+ PRIVATE_HEADER_FILES
+ "*.[hH]"
)
# add generated header files in build directory
@@ -409,6 +416,7 @@ else()
endif(FLTK_USE_X11 AND NOT FLTK_USE_WAYLAND)
source_group("Header Files" FILES ${HEADER_FILES})
+source_group("Private Header Files" FILES ${PRIVATE_HEADER_FILES})
source_group("Driver Source Files" FILES ${DRIVER_FILES})
source_group("Driver Header Files" FILES ${DRIVER_HEADER_FILES})
@@ -622,7 +630,7 @@ endif()
# prepare source files for shared and static FLTK libraries
set(SHARED_FILES ${CPPFILES} ${MMFILES} ${CFILES} ${PSFILES})
-list(APPEND SHARED_FILES ${HEADER_FILES} ${DRIVER_HEADER_FILES})
+list(APPEND SHARED_FILES ${HEADER_FILES} ${PRIVATE_HEADER_FILES} ${DRIVER_HEADER_FILES})
set(STATIC_FILES ${SHARED_FILES})