Servatrice portable + cmake options

Use -DPORTABLE=1 to build a portable version
This commit is contained in:
marco 2015-08-25 21:25:13 +02:00
parent 4125d690fa
commit 0b94b47f72
4 changed files with 20 additions and 3 deletions

View file

@ -194,3 +194,8 @@ Translations = Resources/translations\")
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/servatrice.exe\" \"\${QTPLUGINS}\" \"${QT_LIBRARY_DIR}\")
" COMPONENT Runtime)
endif()
#Compile a portable version, default off
option(PORTABLE "portable build" OFF)
IF(PORTABLE)
add_definitions(-DPORTABLE_BUILD)
endif()