Skip to content

Commit

Permalink
CMake: Generate PNG images for arx-libertatis*.svg
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed May 17, 2016
1 parent 34d793f commit 3c4b5fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
@@ -1,6 +1,6 @@
Arx Libertatis 1.2-dev

Data Version: 0
Data Version: 1
IO Library ABI Version: 0
Bug Tracker Version ID: 1

Expand Down
20 changes: 20 additions & 0 deletions data/CMakeLists.txt
Expand Up @@ -29,3 +29,23 @@ foreach(dir IN LISTS data_sources)
endif()
endif()
endforeach()

# Sizes for the portable PNG icon - first is the default size
set(png_sizes
128
32
24
22
16
)

add_icon(arx-libertatis
arx-libertatis.svg 1024
arx-libertatis-32.svg 32@2x 512
arx-libertatis-16.svg 16@2x
PNG ${png_sizes}
)

add_custom_target(data DEPENDS
arx-libertatis-icon
)

0 comments on commit 3c4b5fe

Please sign in to comment.