From 83fad010ba8648eb6f615293e60a86a9334fc736 Mon Sep 17 00:00:00 2001 From: keita Date: Wed, 3 Mar 2021 03:23:11 +0900 Subject: [PATCH] manage README --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5a1d6c..bc1814f 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,29 @@ $ ninja ``` ## Windows -T.B.D. +- Get MinGW32 from [here](https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/)(start download automatically at open link) +- Install `mingw32-base-bin` and `mingw32-gcc-g+-bin` via MinGW32 +- Add PATH in System Environment +- Get libcurl-32bit and OpenSSL-32bit from [here](https://curl.se/windows/) +- Get ninja from [here](https://github.com/ninja-build/ninja/releases) and add PATH(Optional, but build faster) -## HINT +and .... +``` +$ git clone https://github.com/koron0902/CocoaTweet +$ cd CocoaTweet // HINT : see bellow for more build faster +$ mkdir build +$ cd build + +// if install ninja +$ cmake .. -G Ninja -DOPENSSL_ROOT_DIR= -DCURL_ROOT_DIR= -DCMAKE_CXX_COMPILER=mingw32-g++ -DCMAKE_C_COMPILER=mingw32-gcc -DCMAKE_MAKE_PROGRAM=ninja +$ ninja + +// if NOT install ninja +$ cmake .. -G "MinGW Makefiles" -DOPENSSL_ROOT_DIR= -DCURL_ROOT_DIR= +$ mingw32-make +``` + +## -- HINT -- in the default, test code also linked when build. you can build more faster modifing CMakeLists.txt ```