1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(build): add missing rcc options

This should reduce the qTox binary size.
This commit is contained in:
sudden6 2017-06-19 11:22:26 +02:00
parent e5bc9bb16a
commit 6b7c0c738b
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -37,6 +37,8 @@ project(qtox)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(RCC_OPTIONS -compress 9 -threshold 0)
# Use C++11.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
@ -138,6 +140,7 @@ qt5_add_resources(
res.qrc
${CMAKE_CURRENT_BINARY_DIR}/translations.qrc
DEPENDS ${${PROJECT_NAME}_QM_FILES}
OPTIONS ${RCC_OPTIONS}
)
if(NOT SMILEYS)
@ -147,12 +150,14 @@ endif()
if(NOT "${SMILEYS}" STREQUAL "DISABLED")
qt5_add_resources(
${PROJECT_NAME}_RESOURCES
smileys/emojione.qrc)
smileys/emojione.qrc
OPTIONS ${RCC_OPTIONS})
if(NOT "${SMILEYS}" STREQUAL "MIN")
qt5_add_resources(
${PROJECT_NAME}_RESOURCES
smileys/smileys.qrc)
smileys/smileys.qrc
OPTIONS ${RCC_OPTIONS})
endif()
endif()