Updated on 2017-08-31
Step
D:\Work\Download\cmark-master>
type nul > PreLoad.cmake
echo set(CMAKE_C_STANDARD 11 CACHE INTERNAL "" FORCE) > PreLoad.cmake
echo set(CMAKE_C_STANDARD_REQUIRED ON CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_C_FLAGS "-s -Os" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_CXX_FLAGS "-s -Os" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_EXE_LINKER_FLAGS "-static" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo. >> PreLoad.cmake
echo set(CMAKE_GENERATOR "MinGW Makefiles" CACHE INTERNAL "" FORCE) >> PreLoad.cmake
echo set(CMAKE_INSTALL_PREFIX "456" CACHE PATH "" FORCE) >> PreLoad.cmake
md 123 && cd 123 && cmake .. && mingw32-make && mingw32-make install
strip -sv -o 123.exe cmark.exe #清除所有标记
objdump -p cmark.exe | more #查看程序信息
ldd cmark.exe #查看动态链接库