FLTK logo

Re: [fltk.coredev] CMake: add 'examples' to build [was: Something in progress? (table examples broken on Linux)]

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: CMake: add 'examples' to build [was: Something in progress? (table examples broken on Linux)] Albrecht Schlosser Aug 15, 2020  
 
On 8/15/20 8:36 PM Albrecht Schlosser wrote:
On 8/15/20 4:18 AM Greg Ercolano wrote:
On 2020-08-14 17:15, Albrecht Schlosser wrote:
    But if things really need to be in <build>/bin for some reason,
    then I'd next hope for:

        <build>/bin/test/        <-- test executables
        <build>/bin/examples/        <-- examples executables

... if it's important and more than one person ;-) wants it, I can
try it...

    Sure, I'd like to see others weigh in on this.

FWIW: I created a proof of concept and found I could do it. Tested with Linux, MinGW (MSYS2), and VS 2019. Since Xcode obviously uses the same (multi-config build) structure as Visual Studio I assume this works as well.

FTR: This is the structure of files generated by CMake and VS 2019 in Release mode:

[build/vs2019] $ tree bin data lib
bin
├── examples
│   └── Release
│       ├── browser-simple.exe
│       ├── ...
│       └── wizard-simple.exe
├── Release
│   └── fluid.exe
└── test
    └── Release
        ├── adjuster.exe
        ├── ...
        └── windowfocus.exe
data
├── browser.cxx
├── demo.menu
├── editor.cxx
├── help_dialog.html
├── images
│   ├── Fl_Value_Input.png
│   ├── Fl_Value_Output.png
│   ├── FL200.png
│   └── tiny.png
├── rgb.txt
└── valuators.fl
lib
└── Release
    ├── fltk.lib
    ├── fltk_forms.lib
    ├── fltk_gl.lib
    ├── fltk_images.lib
    ├── fltk_jpeg.lib
    ├── fltk_png.lib
    ├── fltk_z.lib
    ├── libfltk.dll
    ├── libfltk.exp
    ├── libfltk.lib
    ├── libfltk_jpeg.dll
    ├── libfltk_png.dll
    ├── libfltk_png.exp
    ├── libfltk_png.lib
    └── libfltk_z.dll

7 directories, 150 files

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/deb73249-0df6-12cf-d81c-42af0d623150%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.