Skip to content

Commit

Permalink
Add support for generated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kebekus committed Mar 1, 2020
1 parent 5a76a5e commit ac3bec9
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 155 deletions.
6 changes: 1 addition & 5 deletions 3rdParty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@ endif()
# MapBox fonts
#

execute_process(
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/generateFontQRC.py
)
set(flightMapFontsQRC ${CMAKE_CURRENT_BINARY_DIR}/flightMap-fonts.qrc CACHE INTERNAL "" FORCE)
set(mapBoxFont_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/openseamap-gl CACHE INTERNAL "" FORCE)
20 changes: 0 additions & 20 deletions 3rdParty/generateFontQRC.py

This file was deleted.

1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ endif()

# Subdirectories
add_subdirectory(3rdParty)
add_subdirectory(generatedSources)
add_subdirectory(metadata)
add_subdirectory(packaging)
add_subdirectory(src)
75 changes: 75 additions & 0 deletions generatedSources/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#
# Generate PNG versions of the main program icon
#

add_custom_target(mainIcons
COMMAND mkdir -p ${CMAKE_CURRENT_SOURCE_DIR}/metadata
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}_angular.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/metadata/${APP_ID}_angular.png -h 512 -w 512
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/metadata/${APP_ID}.png -h 512 -w 512
COMMENT "Generated sources: main program icons"
)


#
# Sprites for the flight map
#

add_custom_target(flightMapSprites
COMMAND mkdir -p ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-GLD.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GLD.png -h 20 -w 20
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-GLD.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GLD@2x.png -h 40 -w 40
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-GRASS.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GRASS.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-GRASS.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GRASS@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-INOP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-INOP.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-INOP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-INOP@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL-GRASS.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-GRASS.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL-GRASS.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-GRASS@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL-PAVED.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-PAVED.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-MIL-PAVED.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-PAVED@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-PAVED.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-PAVED.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-PAVED.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-PAVED@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-UL.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-UL.png -h 20 -w 20
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-UL.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-UL@2x.png -h 40 -w 40
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-WATER.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-WATER.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/AD-WATER.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-WATER@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/MRP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/MRP.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/MRP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/MRP@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/NDB.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/NDB.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/NDB.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/NDB@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/RP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/RP.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/RP.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/RP@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VOR.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VOR.png -w 22
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VOR.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VOR@2x.png -w 44
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VORDME.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORDME.png -w 22
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VORDME.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORDME@2x.png -w 44
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VORTAC.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORTAC.png -w 26
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/src/flightMap/sprites/VORTAC.svg -o ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORTAC@2x.png -w 52
COMMENT "Generated sources: flight map sprites"
)


#
# MapBox font ressource
#

add_custom_target(mapBoxFontRessource
COMMAND mkdir -p ${CMAKE_CURRENT_SOURCE_DIR}/flightMap
COMMAND python3 ${CMAKE_CURRENT_SOURCE_DIR}/generateFontQRC.py ${CMAKE_SOURCE_DIR}/3rdParty ${CMAKE_CURRENT_SOURCE_DIR}/flightMap
COMMENT "Generated sources: mapbox font ressource"
)
set(flightMapFontsQRC ${CMAKE_CURRENT_BINARY_DIR}/flightMap-fonts.qrc CACHE INTERNAL "" FORCE)


#
# Target 'generatedSources' that combines all of the above
#

add_custom_target(generatedSources
DEPENDS flightMapSprites
DEPENDS mainIcons
DEPENDS mapBoxFontRessource
)
10 changes: 10 additions & 0 deletions generatedSources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated Sources

The subdirectories of this directory contains source files that have been
generated from other sources, for instance icons in PNG format that have been
generated from scalable vector graphics. We include these generated sources here
because the tools required to build them are not universally available on all
platforms.

There exists a special CMake target, **generatedSources** that re-builds the
source files in this directory.
23 changes: 23 additions & 0 deletions generatedSources/generateFontQRC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/python3

import glob
import sys

file = open(sys.argv[2]+'/flightMap-fonts.qrc.in', 'w')
file.write('<!DOCTYPE RCC><RCC version="1.0">\n')
file.write(' <qresource>\n')
file.write(' <!-- MapBox font files -->\n')

for fileName in glob.glob(sys.argv[1]+'/**/*.pbf', recursive=True):
fontName = fileName.split('/')[-2]+'/'+fileName.split('/')[-1]
file.write(' <file alias="flightMap/fonts/{}">'.format(fontName)
+ "${CMAKE_SOURCE_DIR}/3rdParty/openseamap-gl/fonts/"
+ '{}</file>\n'.format(fontName))
if fileName.split('/')[-2] == 'Roboto Regular':
file.write(' <file alias="flightMap/fonts/Open Sans Regular,Arial Unicode MS Regular/{}">'.format(fileName.split('/')[-1])
+ "${CMAKE_SOURCE_DIR}/3rdParty/openseamap-gl/fonts/"
+ '{}</file>\n'.format(fontName))

file.write(' </qresource>\n')
file.write('</RCC>\n')
file.close()
98 changes: 2 additions & 96 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#

configure_file(flightMap.qrc.in flightMap.qrc)
configure_file(${CMAKE_SOURCE_DIR}/generatedSources/flightMap/flightMap-fonts.qrc.in flightMapFonts.qrc)
configure_file(icons.qrc.in icons.qrc)
configure_file(qml.qrc.in qml.qrc)
configure_file(ressources.qrc.in ressources.qrc)
Expand All @@ -16,112 +17,17 @@ configure_file(text/participate.html.in text/participate.html)
configure_file(text/whatsnew.html.in text/whatsnew.html)


#
# Generate PNG versions of the main program icon
#

add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/metadata/${APP_ID}_angular.png ${CMAKE_BINARY_DIR}/metadata/${APP_ID}.png
DEPENDS ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}.svg ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}_angular.svg
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}_angular.svg -o ${CMAKE_BINARY_DIR}/metadata/${APP_ID}_angular.png -h 512 -w 512
COMMAND rsvg-convert ${CMAKE_SOURCE_DIR}/metadata/${APP_ID}.svg -o ${CMAKE_BINARY_DIR}/metadata/${APP_ID}.png -h 512 -w 512
COMMENT "Generate main program icons"
)


#
# Generate PNG versions of the aviation symbols
#

set(AVIATION_ICONS
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GLD.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GLD@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GRASS.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GRASS@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-INOP.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-INOP@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-GRASS.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-GRASS@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-PAVED.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-PAVED@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-PAVED.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-PAVED@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-UL.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-UL@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-WATER.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-WATER@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/MRP.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/MRP@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/NDB.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/NDB@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/RP.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/RP@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VOR.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VOR@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORDME.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORDME@2x.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORTAC.png
${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORTAC@2x.png
)
add_custom_command(
OUTPUT ${AVIATION_ICONS}
COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GLD.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GLD.png -h 20 -w 20
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GLD.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GLD@2x.png -h 40 -w 40
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GRASS.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GRASS.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-GRASS.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-GRASS@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-INOP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-INOP.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-INOP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-INOP@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-GRASS.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-GRASS.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-GRASS.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-GRASS@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-PAVED.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-PAVED.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-MIL-PAVED.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-MIL-PAVED@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-PAVED.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-PAVED.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-PAVED.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-PAVED@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-UL.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-UL.png -h 20 -w 20
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-UL.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-UL@2x.png -h 40 -w 40
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-WATER.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-WATER.png -h 30 -w 30
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/AD-WATER.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/AD-WATER@2x.png -h 60 -w 60
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/MRP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/MRP.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/MRP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/MRP@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/NDB.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/NDB.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/NDB.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/NDB@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/RP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/RP.png -h 25 -w 25
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/RP.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/RP@2x.png -h 50 -w 50
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VOR.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VOR.png -w 22
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VOR.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VOR@2x.png -w 44
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORDME.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORDME.png -w 22
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORDME.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORDME@2x.png -w 44
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORTAC.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORTAC.png -w 26
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/flightMap/sprites/VORTAC.svg -o ${CMAKE_CURRENT_BINARY_DIR}/flightMap/sprites/VORTAC@2x.png -w 52
COMMENT Generating Icons
)


#
# Set up sources
#

set(SOURCES
# Ressources
${CMAKE_CURRENT_BINARY_DIR}/flightMap.qrc
${flightMapFontsQRC}
${CMAKE_CURRENT_BINARY_DIR}/flightMapFonts.qrc
${CMAKE_CURRENT_BINARY_DIR}/icons.qrc
${CMAKE_CURRENT_BINARY_DIR}/qml.qrc
${CMAKE_CURRENT_BINARY_DIR}/ressources.qrc

# List icons here to make sure that they are built
${AVIATION_ICONS}
${CMAKE_BINARY_DIR}/metadata/${APP_ID}.png
${CMAKE_BINARY_DIR}/metadata/${APP_ID}.svg

# C++ files
Aircraft.cpp
Expand Down
Loading

0 comments on commit ac3bec9

Please sign in to comment.