summaryrefslogtreecommitdiff
path: root/README.CMake.txt
AgeCommit message (Collapse)Author
3 dayswip: forkmaxim nikonov
2026-01-08Add CMake option FLTK_OPTION_PEN_SUPPORT (default: ON)Albrecht Schlosser
This option can be used to disable pen/tablet support if there are build problems on a particular platform or build system (e.g. MinGW) so users can continue to build FLTK 1.5. Users can also choose to disable pen support if they don't need it.
2026-01-04Add an option and the first program to create screenshotsAlbrecht Schlosser
This is the first step in creating additional programs for saving screenshots for documentation purposes. These screenshots must be saved in the documentation/images directory and checked into the Git repository. These programs allow developers to create new screenshots or change existing ones. More screenshots may be created by programs in the /test/ folder. To-do: add more *new* screenshot programs, and if useful, move some existing programs from the `/test/` folder to `/screenshots/`, such as `test/resize-example*.cxx` and maybe more.
2025-12-10Improve CMP documentation and README.CMake.txt (#1346)Albrecht Schlosser
- fix PDF generation - update some tables, particularly Visual Studio and macOS macros To-do: more details, updates for 1.4 and 1.5, respectively
2025-11-10Attempt to improve description of CMake option FLTK_GRAPHICS_CAIROManoloFLTK
2025-06-03Add build option FLTK_USE_DBUS to allow build w/o dbus (PR #1252)ManoloFLTK
Thanks to @lanodan for most of the source code.
2025-05-06Remove hardcoded version numbers: part 1Albrecht Schlosser
The goal is to change the version number for a new release only in CMakeLists.txt. This is the first step. Details: - CMake/gen_config.cmake: this new file is included to generate the header files config.h (private, root directory), and FL/fl_config.h (public, can be installed). This file implements also ABI version checks (removed from FL/Enumerations.H and with more checks). Warnings are issued if the chosen ABI version is invalid. - CMake/export.cmake: code to generate 'config.h' was moved to CMake/gen_config.cmake. - CMake/options.cmake: set default of FLTK_BUILD_FORMS=OFF + comments - CMakeLists.txt: move generation of FL/fl_config.h to gen_config.cmake, add API and ABI versions to CMake summary, - FL/Enumerations.H: remove most of the version number details which are now included in FL/fl_config.h. This needed also some doxygen related changes. - README.CMake.txt: improve docs of FL_ABI_VERSION and some more. Reflect the new default of CMake option FLTK_BUILD_FORMS (OFF). - documentation/Doxyfile.in: add FL/fl_config.h to file list. This file is created in the build tree (and may be "installed"). - fl_config.h.in: add version number details that have been moved here from Enumerations.H (used to generate FL/fl_config.h).
2025-03-19Remove obsolete build option 'FLTK_OPTION_STD'Albrecht Schlosser
This option is no longer needed since FLTK 1.5 always requires C++11.
2025-03-16Remove libfltk_cairo (fltk::cairo)Albrecht Schlosser
This library is no longer needed and was "empty" for backwards compatibility since FLTK 1.4.0.
2024-12-26Fix typo in README.CMake.txtAlbrecht Schlosser
2024-12-10Update README.CMake.txt for cross-building and more (#1154)Albrecht Schlosser
- add chapter 2.2.5 : "Other CMake Cache Variables" and document some cache variables and how to access and modify them, - clarify and extend the toolchain-file example, - explain how to find and use the correct fluid executable when cross-compiling
2024-12-09No need to link to libgtk when using package libdecor-0-devManoloFLTK
2024-10-29Improve README.CMake.txtAlbrecht Schlosser
- fix typos, clarify text - improve headlines - add "generic" CMake instructions - add version spec to find_package command
2024-10-09CMake: ignore FLTK_MSVC_RUNTIME_DLL on other platformsAlbrecht Schlosser
This commit suppresses a CMake warning if FLTK_MSVC_RUNTIME_DLL is defined on the CMake commandline on platforms that don't use it.
2024-09-23Mark CMake option FLTK_USE_PANGO as highly recommended under X11ManoloFLTK
2024-08-10Fix tabs, trailing spaces, and update dependenciesAlbrecht Schlosser
2024-07-29Add chapter in CMake docs for building FLTK under Windows WSL.Matthias Melcher
2024-06-24Add example to build w/warnings+fltk examplesGreg Ercolano
2024-06-21Remove trailing whitespaceAlbrecht Schlosser
no code changes
2024-04-22 Fix: Fl_Native_File_Chooser::filter_value() [Kdialog] always returns 0 (#899)ManoloFLTK
- remove build option FLTK_USE_KDIALOG replaced by an Fl::option() option - new run-time option OPTION_FNFC_USES_KDIALOG - make options OPTION_FNFC_USES_KDIALOG and OPTION_FNFC_USES_ZENITY false by default - add mention of new program fltk-options in the doc of Fl::option() - change logic of choice of the native file chooser under X11/Wayland: the zenity and kdialog choosers are opt-in; otherwise the GTK file chooser is used, unless opted out with OPTION_FNFC_USES_GTK - document that zenity may be interesting for sandboxed apps - document that both zenity and kdialog make member functions Fl_Native_File_Chooser::filter_value() inoperable
2024-04-18Allow libdecor package version ≥ 0.2.0 with FLTK_USE_SYSTEM_LIBDECORManoloFLTK
2024-04-17Separate FLUID user documentation, screen shot automation (#936)Matthias Melcher
* CMake integration, no autotiools * alignment panel is now correctly renamed to setting panel * source view is now correctly renamed to code view * Merge FLTK FLUID docs into FLUID user manual. * Add two simple entry tutorials * Remove FLUID chapter form FLTK docs. * GitHub action to generate HTML and PDF docs and make the available as artefacts
2024-03-15Have FLTK use libdecor at version > 0.2.2ManoloFLTK
- it's no longer necessary to take care of the change in the layout of "struct libdecor" between versions ≤ 0.2.2 and > 0.2.2 of libdecor - version > 0.2.2 contains MR131, that is, it defines LIBDECOR_WINDOW_STATE_RESIZING so the hack to emulate it is no longer necessary - CMake option FLTK_USE_SYSTEM_LIBDECOR now requires libdecor version > 0.2.2 to be activated, otherwise the bundled libdecor is used - what will be the libdecor version after 0.2.2 (0.2.3? 0.3.0?) is not known as of today
2024-02-07Introduce "Modern CMake" in FLTKAlbrecht Schlosser
This is a big commit and there are too many changes to list them all. The main changes are: - rename all CMake build options to 'FLTK_*' - export library targets with namespace (prefix) 'fltk::' - standardize shared library target names with suffix '-shared' - set public build properties on libraries for consumers - document library names and aliases in README.CMake.txt - document changes in "Migrating Code from FLTK 1.3 to 1.4" - partial backwards compatibility for old user projects Included but not directly related changes: - fix Windows (Visual Studio) DLL build - add CMake function fl_debug_target() to show target properties - don't build test programs if FLTK is a subproject - internal: reformat CMake code: remove space before '(' Thanks to Matthias and Manolo for their help, testing, and feeback.
2023-12-08Updated nmake build command in READMEGreg Ercolano
2023-12-04Minor updates of bundled libraries and README.CMake.txtAlbrecht Schlosser
Update Makefiles, CMakeLists.txt, improve formatting.
2023-12-03CMake: Remove UseFLTK.cmake generation and usageAlbrecht Schlosser
2023-12-02Wayland: make OPTION_USE_SYSTEM_LIBDECOR ON by defaultManoloFLTK
This commit makes the default FLTK build setting use libdecor as packaged in Linux when the build system contains packages libdecor-0-dev and libdecor-0-plugin-1-gtk in version ≥ 0.2.0. Otherwise, FLTK uses the bundled version of libdecor. This includes situations where package libdecor-0-dev is present in an earlier version.
2023-11-25CMake/Windows/MSVC: Add option to select MSVC RuntimeAlbrecht Schlosser
Selects MSVC compiler/build options known as /MT, /MTd, /MD, or /MDd. This applies to "Visual Studio" (IDE) and "NMake Makefiles" builds.
2023-10-31Remove unnecessary statement from CMake build exampleAlbrecht Schlosser
2023-10-31Fix typosAlbrecht Schlosser
2023-10-31Improve build instructions in README.CMake.txt (#164)Albrecht Schlosser
- update CMakeLists.txt files for user projects, - add one that uses CMake's FetchContent module.
2023-10-22Make Fl_String and Fl_Int_Vector private (#789)Albrecht Schlosser
- add CMake option 'OPTION_USE_STD' - add configure option '--enable-use_std' - move FL/Fl_String.H to src/Fl_String.H - move FL/Fl_Int_Vector.H to src/Fl_Int_Vector.H - remove Fl_String from demo program examples/callbacks.cxx - remove Fl_Int_Vector from public header FL/Fl_Table.H - some methods of Fl_Table are no longer inline - add CMake option OPTION_USE_STD to allow std::string in some selected functions and methods Experimental, may be removed before release: - use either Fl_Int_Vector or std::vector in Fl_Table depending on CMake OPTION_USE_STD or configure --enable-use_std Move all fl_filename* functions that use Fl_String to fluid Main changes in fluid: - add fluid_filename.h and .cxx - include "fluid_filename.h" rather than <FL/filename.H> Update fl_input(), fl_password() and test/ask - add maxchar parameter to fl_input() and fl_password() - fl_input_str() and fl_password_str() are optional and return std::string if enabled (FLTK_USE_STD)
2023-10-03Enhance info about documentation generationAlbrecht Schlosser
- update build requirements - clarify CMake options - make clear that a POSIX shell and some Unix tools are required to build the PDF documentation
2023-07-09Describe cmake option OPTION_ALLOW_GTK_PLUGINManoloFLTK
2023-02-17Move OPTION_USE_SYSTEM_LIBDECOR away from doc optionsManoloFLTK
2023-02-17Describe OPTION_USE_KDIALOG and OPTION_USE_SYSTEM_LIBDECORManoloFLTK
2023-01-21Move global FLTK options into new app fltk-admin (#560)Matthias Melcher
2022-11-23Have OPTION_USE_WAYLAND / --enable-wayland set to ON by defaultManoloFLTK
2022-11-13Make building Fluid optional. (#539)Matthias Melcher
2022-10-18Added cmake example for building nmake filesGreg Ercolano
The docs needed an example of building fltk purely from the command line with Visual Studio (e.g. with nmake), without the IDE.
2022-09-09New OPTION_WAYLAND_ONLY for CMake to build pure Wayland platform.ManoloFLTK
2022-08-29Make hybrid Wayland/X11 platform.ManoloFLTK
2022-07-05Documentation: add missing mentions of the Wayland platform.ManoloFLTK
2021-11-26Fix for issue #253: Remove xdbe supportManoloFLTK
2021-04-29Document how to build universal apps for macOSAlbrecht Schlosser
2021-02-16Fix whitespace errors (no code changes)Albrecht Schlosser
- remove trailing whitespace - convert tabs to spaces (configure.ac)
2021-02-15Update CMake and make files, minor edits onlyAlbrecht Schlosser
There are no functional changes to be expected, mostly formatting and comments.
2020-11-24Basic CMakeLists.txt file to build FLTK-based user program - continuedManoloFLTK
A single add_executable() command is possible.
2020-11-23Basic CMakeLists.txt file to build FLTK-based user program.ManoloFLTK
The change is mostly concerned with showing how to build a macOS bundled app, in addition to X11 and Windows support.