mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 08:12:35 -08:00
cmake: Add POST_BUILD to custom commands for CMP0175 (#12548)
This commit is contained in:
1 parent
99b7407a02
commit
559783bcca
1 file changed
+3
@@ -74,16 +74,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})
|
||||
Reference in new issue
Block a user