diff options
| author | Greg Ercolano <erco@seriss.com> | 2022-10-18 23:23:58 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2022-10-18 23:23:58 -0700 |
| commit | f40bd49a7c2af4c2ead91f4ad82a79477c553a27 (patch) | |
| tree | cb5d9c7361e10b90c149259de690d46cff1fa7ae | |
| parent | 857462529bc57cd24dc83fad513ec99765dec462 (diff) | |
Added cmake example for building nmake files
The docs needed an example of building fltk purely from the command line
with Visual Studio (e.g. with nmake), without the IDE.
| -rw-r--r-- | README.CMake.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.CMake.txt b/README.CMake.txt index 37f6344c4..c26af1fe6 100644 --- a/README.CMake.txt +++ b/README.CMake.txt @@ -323,6 +323,22 @@ in the GUI (cmake-gui). to include both the build tree (first) and then the FLTK source tree in the compiler's header search list. + 2.4.2 Visual Studio 2019 / NMake + -------------------------------------- + This uses cmake to generate + build FLTK in Release mode using nmake, + using purely the command line (never need to open the Visual Studio IDE) + using Multithreaded (/MT) and optimizer level 2 (/O2): + + mkdir build-nmake + cd build-nmake + cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="/MT /O2 /Ob2 /D NDEBUG" -DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /D NDEBUG" .. + nmake all + + ..which results in a colorful percentage output crawl similar to what + we see with unix 'make'. + -erco@seriss.com + fltk.coredev - Mar 12 2022 + 2.5 Building under Windows with MinGW using Makefiles -------------------------------------------------------- |
