Created
April 28, 2015 03:31
-
-
Save wakita/8b588a8352e74fb18c32 to your computer and use it in GitHub Desktop.
Windows+MinGW+CMakeでの開発に必須
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"c:\Program Files (x86)\CMake\bin\cmake.exe" -G"MinGW Makefiles" -H. -B%builddir% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set MINGW=c:\mingw\mingw64\bin | |
set CC=%MINGW%\gcc | |
set CXX=%MINGW%\g++ | |
:: set CMAKE_CXX_COMPILER=%CXX% | |
set srcdir=%CD% | |
set builddir=%HOME%\build\%srcdir:*Dropbox (smartnova)\=% | |
PATH %builddir%;%PATH% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mingw32-make -C %builddir% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これらのファイルを %DROPBOX%\win\bin あたりに保存し,もちろんこのフォルダに PATH を通しておけば,CMake を使った開発が簡単になります.
cmake.bat と make.bat はそれぞれ本物の cmake と mingw32-make のラッパです.%DROPBOX%\win\bin は PATH の先頭の方に配置しておかないと正しく動作しません.