Skip to content

Commit

Permalink
cmake: Modify resource install path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh authored and exjam committed Jan 29, 2019
1 parent 6ce9817 commit b4dfe26
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions resources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ set(Fonts
fonts/CafeKr.ttf
fonts/CafeStd.ttf
fonts/CafeTw.ttf
fonts/NotoSansCJK.LICENSE
fonts/DejaVuSansMono.ttf
fonts/DejaVuSansMono.LICENSE)

fonts/DejaVuSansMono.ttf)
set(Docs
fonts/DejaVuSansMono.LICENSE
fonts/NotoSansCJK.LICENSE
../README.md
../LICENSE.md)
set(ResourceFiles ${Fonts})

add_custom_target(resources ALL SOURCES ${ResourceFiles})
Expand All @@ -20,5 +22,5 @@ foreach(ResourceFile ${ResourceFiles})
$<TARGET_FILE_DIR:libdecaf>/resources/${ResourceFile})
endforeach()

install(FILES ${Fonts}
DESTINATION "${CMAKE_INSTALL_PREFIX}/resources/fonts")
install(FILES ${Fonts} DESTINATION "${DECAF_INSTALL_RESOURCESDIR}/fonts")
install(FILES ${Docs} DESTINATION "${DECAF_INSTALL_DOCSDIR}")

0 comments on commit b4dfe26

Please sign in to comment.