There are 3 attempts used
- Cross-compile CMake with mingw64 + pre-built mingw64 ncurses - See
cmake_crosscompile_mingw64_ncurses.md
- Cross-compile both CMake and pdcurses with mingw64 - See
cmake_crosscompile_mingw64_pdcurses.md
(Recommended) - Natively compile CMake and pdcurses with MSVC - See
cmake_native_cmake_pdcurses.md
All above 3 attempts shared the common steps but still listing such shared content in each of its own guide for reference and clear guideline.
You work on CMake Windows-based project on Windows machine through WSL.
Although on Windows, you can already use cmake-gui.exe
. But you prefer to use command line based solution to configure or generate the project, or quickly adjust options from generated CMake project without a need to incrementally execute cmake.exe
with bunch of options and lots of flags here and there. It's clear, you crave for ccmake
which is available only on Unix/Linux based platform.
The core question is how can we make ccmake
also available on Windows ?
There are 2 categories
- Cross-compile CMake for Windows on Linux with mingw64, then work with either curses/ncurses or PDCurses
- Natively compile both CMake and PDCurses with MSVC
If cross-compile, we use mingw64 to do so.
In either approach, some effort is needed to make CMake compatible to be compiled via mingw64, or tweak dependency like PDCurses. But I provide all patches needed to do so. Just make sure you checkout a specific correct version I listed in this guide.