On 2020-09-19 11:57, Theodore wrote:
> Thanks Greg!
> Indeed I took the idea of a build subfolder from another reply of yours.
> I chose the "configure" path because I was thinking to use Make instead of CMake, I have the impression that it's a simpler tool for simpler projects.
> But if you say that CMake is the future... then I have to think again...
Ya, the reason it's the way of the future is configure doesn't help with creating
Visual Studio IDE files (a large Windows audience uses Visual Studio, the 'native'
compiler for windows from Microsoft), ditto for Xcode. 'cmake' does help with that.
cmake also lets us generate all the build data in a sub directory, which allows
a single FLTK directory to be used to build for multiple platforms. This is useful
if you have a network drive, e.g. /net/fltk-1.4.x/, and that drive is seen by
Windows, Linux, and MacOS machines, and you want to build FLTK on all those machines
using that one directory:
o With 'configure' it would just overwrite everything for each platform build,
so you have to provide some way to keep them separate.
o With 'cmake' you can have a separate build directory for each platform,
and have them all build at the same time without worry of 'crosstalk':
cd /net/fltk-1.4.x/; mkdir build-linux; cd build-linux; cmake .. ; make
cd /net/fltk-1.4.x/; mkdir build-mac; cd build-mac; cmake .. ; make
cd /net/fltk-1.4.x/; mkdir build-mingw; cd build-mingw; cmake .. ; make
..leaving behind separate platform files that can all be used by your own multi-platform
project built similarly across all platforms.
I do something like this with my commercial software, as it supports at least 3 platforms
(sometimes different linux distros require separate builds).
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/930fb8cd-fb94-198a-35c3-d5086419775c%40seriss.com.
[ Direct Link to Message ]