chore: add configuration option

This commit is contained in:
wuuhaii 2023-09-18 21:58:32 +08:00
parent 63317bdec7
commit 36ccf0a24f

View File

@ -33,6 +33,11 @@ find_package(
SerialBus SerialBus
Bluetooth) Bluetooth)
option(SAK_BUILD_FOR_APP_SOTRE "Build for Microsoft/Apple app store." OFF)
if(SAK_FOR_APP_SOTRE)
add_definitions(-DSAK_RELEASE_FOR_APP_STORE)
endif()
if(${QT_VERSION} VERSION_LESS "6.5") if(${QT_VERSION} VERSION_LESS "6.5")
message(WARNING "The Qt version is too old, please using Qt6.5 or later.") message(WARNING "The Qt version is too old, please using Qt6.5 or later.")
endif() endif()