Add -DUSE_MACDEPLOYQT option (default off)
This commit is contained in:
parent
291837701b
commit
fe316643a0
|
@ -182,8 +182,11 @@ elseif (APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# run macdeployqt to gather necessary qt libraries and plugins
|
# 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
|
add_custom_command(TARGET pwe_editor POST_BUILD COMMAND ${MACDEPLOYQT_PROGRAM} ARGS
|
||||||
$<TARGET_FILE_DIR:pwe_editor>/../..)
|
$<TARGET_FILE_DIR:pwe_editor>/../..)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Install targets for CPack distribution
|
# Install targets for CPack distribution
|
||||||
install(TARGETS pwe_editor BUNDLE DESTINATION ".")
|
install(TARGETS pwe_editor BUNDLE DESTINATION ".")
|
||||||
|
|
Loading…
Reference in New Issue