Skip to content

Commit

Permalink
Adopt to changes in HBN SFOS Cmake
Browse files Browse the repository at this point in the history
Use hbn_sfos_add_icon function
  • Loading branch information
buschmann23 committed Feb 22, 2022
1 parent 17bfadd commit 2ee050a
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions images/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ else()
set(ICONSIZES s)
endif()

hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/bitbucket.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/browser.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/facebook.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/github.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/linkedin.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/tmo.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/twitter.svg)
hbn_sfos_gen_icons(hbnsfoscompicons SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} INPUT_FILE src/weibo.svg)
set(SVG_ICONS
src/bitbucket.svg
src/browser.svg
src/facebook.svg
src/github.svg
src/linkedin.svg
src/tmo.svg
src/twitter.svg
src/weibo.svg)

hbn_sfos_add_icon(pngFiles SIZES ${ICONSIZES} INSTALL_DESTINATION ${HBNSC_ICONSDIR} ${SVG_ICONS})

add_custom_target(hbnSfosCompIcons ALL
DEPENDS ${pngFiles}
COMMENT "Generating HBN SFOS Component icons"
SOURCES ${SVG_ICONS})

0 comments on commit 2ee050a

Please sign in to comment.