2023-11-09 18:14:04 +00:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2022-05-25 18:08:22 +00:00
|
|
|
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(
|
2022-05-26 16:07:20 +00:00
|
|
|
lg-logo.svg
|
2022-05-25 18:08:22 +00:00
|
|
|
status/spice.svg
|
|
|
|
status/recording.svg
|
2023-09-13 11:51:53 +00:00
|
|
|
no-input-cursor/16.xcur
|
|
|
|
no-input-cursor/32.xcur
|
2022-05-25 18:08:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(lg_resources STATIC ${LG_RESOURCES_OBJS})
|
|
|
|
set_target_properties(lg_resources PROPERTIES LINKER_LANGUAGE C)
|