Files
LookingGlass/resources/CMakeLists.txt
Quantum 47aebcda0c [client] resources: clean up icon handling
This commit turns the icon handling into using a macro so we don't need to do
weird conversions from unsigned long (needed by X11) to uint32_t (needed by
Wayland).

Also simplified the error handling path on Wayland.
2026-07-18 15:44:22 +10:00

27 lines
601 B
CMake

cmake_minimum_required(VERSION 3.10)
project(lg_resources LANGUAGES C)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
include(MakeObject)
function(build_resources)
make_object(
LG_RESOURCES
${ARGN}
)
set(LG_RESOURCES_OBJS "${LG_RESOURCES_OBJS}" PARENT_SCOPE)
set(LG_RESOURCES_INCS "${LG_RESOURCES_INCS}" PARENT_SCOPE)
endfunction()
build_resources(
lg-logo.svg
status/spice.svg
status/recording.svg
no-input-cursor/16.xcur
no-input-cursor/32.xcur
)
add_library(lg_resources STATIC ${LG_RESOURCES_OBJS})
set_target_properties(lg_resources PROPERTIES LINKER_LANGUAGE C)