mirror of
https://github.com/hrvach/deskhop.git
synced 2025-08-15 23:27:59 +02:00
- add windows workaround
- add mouse acceleration (configurable in user_config.h) - add keyboard shortcuts for output configuration - after several reports, bundling pico-sdk and tinyusb to simplify building - bugfixes
This commit is contained in:
28
pico-sdk/cmake/pico_utils.cmake
Normal file
28
pico-sdk/cmake/pico_utils.cmake
Normal file
@ -0,0 +1,28 @@
|
||||
function(pico_message param)
|
||||
if (${ARGC} EQUAL 1)
|
||||
message("${param}")
|
||||
return()
|
||||
endif ()
|
||||
|
||||
if (NOT ${ARGC} EQUAL 2)
|
||||
message(FATAL_ERROR "Expect at most 2 arguments")
|
||||
endif ()
|
||||
message("${param}" "${ARGV1}")
|
||||
endfunction()
|
||||
|
||||
macro(assert VAR MSG)
|
||||
if (NOT ${VAR})
|
||||
message(FATAL_ERROR "${MSG}")
|
||||
endif ()
|
||||
endmacro()
|
||||
|
||||
function(pico_find_in_paths OUT PATHS NAME)
|
||||
foreach(PATH IN LISTS ${PATHS})
|
||||
if (EXISTS ${PATH}/${NAME})
|
||||
get_filename_component(FULLNAME ${PATH}/${NAME} ABSOLUTE)
|
||||
set(${OUT} ${FULLNAME} PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
endforeach()
|
||||
set(${OUT} "" PARENT_SCOPE)
|
||||
endfunction()
|
Reference in New Issue
Block a user