mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
cmake: Add POST_BUILD to custom commands for CMP0175 (#12548)
This commit is contained in:
parent
5736c6379c
commit
6f59444439
1 changed files with 3 additions and 0 deletions
|
|
@ -79,16 +79,19 @@ install(FILES icons/application/256x256/apps/keepassxc.png DESTINATION ${DATA_IN
|
|||
|
||||
add_custom_target(icons)
|
||||
add_custom_command(TARGET icons
|
||||
POST_BUILD
|
||||
COMMAND bash ./icons/minify.sh
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
if(APPLE)
|
||||
add_custom_command(TARGET icons
|
||||
POST_BUILD
|
||||
COMMAND png2icns macosx/keepassxc.icns icons/application/256x256/apps/keepassxc.png
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
endif()
|
||||
|
||||
# ICO for Windows
|
||||
add_custom_command(TARGET icons
|
||||
POST_BUILD
|
||||
COMMAND bash ./windows/create-ico.sh icons/application/scalable/apps/keepassxc.svg windows/keepassxc.ico
|
||||
COMMAND bash ./windows/create-ico.sh icons/application/scalable/mimetypes/application-x-keepassxc.svg windows/keepassxc-kdbx.ico
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
|
|||
Loading…
Reference in a new issue