Add -DUSE_MACDEPLOYQT option (default off)

This commit is contained in:
Luke Street 2021-03-26 17:21:23 -04:00
parent 291837701b
commit fe316643a0
1 changed files with 5 additions and 2 deletions

View File

@ -182,8 +182,11 @@ elseif (APPLE)
endif()
# run macdeployqt to gather necessary qt libraries and plugins
option(USE_MACDEPLOYQT "Run macdeployqt on build" OFF)
if(USE_MACDEPLOYQT)
add_custom_command(TARGET pwe_editor POST_BUILD COMMAND ${MACDEPLOYQT_PROGRAM} ARGS
$<TARGET_FILE_DIR:pwe_editor>/../..)
endif()
# Install targets for CPack distribution
install(TARGETS pwe_editor BUNDLE DESTINATION ".")