1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Strip the binary with AppImage build

This commit is contained in:
Mathieu Schroeter 2017-02-26 00:04:55 +01:00
parent 0421599fa4
commit ab249f424b

View File

@ -33,6 +33,11 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif ()
if (USE_APPIMAGE AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
endif ()
add_executable (planetblupi ${sources})
file (COPY resources/data DESTINATION share/planetblupi)