Compiled using CMake to solve the problem so the file is too large

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/Kennethdroid/article/details/99623738

Add the following two lines in CMakeLists.txt file can be reduced more than 90% by volume:

set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")

Guess you like

Origin blog.csdn.net/Kennethdroid/article/details/99623738