Use find_program for rsvg-convert
This commit is contained in:
@@ -177,6 +177,10 @@ if (WIVRN_BUILD_DASHBOARD)
|
|||||||
set(CMAKE_AUTOUIC ON)
|
set(CMAKE_AUTOUIC ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_DASHBOARD)
|
||||||
|
find_program(RSVG_CONVERT rsvg-convert REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)
|
if (WIVRN_BUILD_CLIENT AND NOT ANDROID)
|
||||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET libavcodec libavutil libswscale libavfilter)
|
||||||
find_package(Fontconfig REQUIRED)
|
find_package(Fontconfig REQUIRED)
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ set(IMG_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../images)
|
|||||||
set(AST_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../assets)
|
set(AST_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../assets)
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${ASSETS_DIR}/wivrn.png
|
add_custom_command(OUTPUT ${ASSETS_DIR}/wivrn.png
|
||||||
COMMAND rsvg-convert ${IMG_SRC_DIR}/wivrn.svg -w 540 -h 540 -o ${ASSETS_DIR}/wivrn.png ${RSVG_OPTS}
|
COMMAND ${RSVG_CONVERT} ${IMG_SRC_DIR}/wivrn.svg -w 540 -h 540 -o ${ASSETS_DIR}/wivrn.png ${RSVG_OPTS}
|
||||||
DEPENDS ${IMG_SRC_DIR}/wivrn.svg ${WIVRN_CSS_ABS})
|
DEPENDS ${IMG_SRC_DIR}/wivrn.svg ${WIVRN_CSS_ABS})
|
||||||
|
|
||||||
add_custom_target(assets ALL DEPENDS
|
add_custom_target(assets ALL DEPENDS
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ qt_add_executable(wivrn-dashboard
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png
|
||||||
COMMAND rsvg-convert ${CMAKE_CURRENT_SOURCE_DIR}/../images/wivrn.svg -w 540 -h 540 -o ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png
|
COMMAND ${RSVG_CONVERT} ${CMAKE_CURRENT_SOURCE_DIR}/../images/wivrn.svg -w 540 -h 540 -o ${CMAKE_CURRENT_BINARY_DIR}/wivrn.png
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../images/wivrn.svg)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../images/wivrn.svg)
|
||||||
|
|
||||||
add_custom_target(dashboard-assets ALL DEPENDS
|
add_custom_target(dashboard-assets ALL DEPENDS
|
||||||
|
|||||||
Reference in New Issue
Block a user