mirror of
https://github.com/fltk/fltk.git
synced 2026-05-10 05:27:55 +08:00
a057e13fb4
CMake: execute `code_snapshot` separately for each file we want to scan so we can create timestamps and generate PNG images only if the source file (e.g. unicode.dox) was modified. documentation/src/unicode.dox: remove output folder `generated`, use only the filename. CMake sets the current working directory as needed. util/code_snapshot.cxx: format and improve comments, reset code buffer so we can generate multiple images per input file.
Utility programs used to build the FLTK library.
Contents:
cmap.cxx generate src/fl_cmap.h
code_snapshot.cxx PDF documentation tool to generate a png image from a
Doxygen `@code` segment with international characters
Build System:
The util directory includes CMake support. Utilities are built
automatically during the build process when needed. Some utilities
are only built when specific features are enabled:
- the PDF documentation helper is only built when FLTK_BUILD_PDF_DOCS=ON
To add a new utility, edit util/CMakeLists.txt and follow the existing
patterns for conditional building and target configuration.