CMake and Clang/GCC sample project in Windows (Native CMake/LLVM/MinGW gcc/Ninja)
Cmake with Clang/GCC example for windows
Window with
cmake/clang/gcc/(mingw32-make)/ninja add to %PATH%
$ cd build
$ cmake -C ../gcc-cmakeinit.cmake -GNinja ../src
$ <run command>
$ cd build
$ cmake -C ../clang-cmakeinit.cmake -GNinja ../src
$ <run command>
Ninja build are failed; use alt ex.clang
$ cmake -GNinja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="--target=x86_64-pc-windows-gnu" ../src