From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/hidapi/subprojects/README.md | 2 ++ .../src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/hidapi/subprojects/README.md create mode 100644 contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt (limited to 'contrib/SDL-3.2.8/src/hidapi/subprojects') diff --git a/contrib/SDL-3.2.8/src/hidapi/subprojects/README.md b/contrib/SDL-3.2.8/src/hidapi/subprojects/README.md new file mode 100644 index 0000000..8ba8f60 --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/subprojects/README.md @@ -0,0 +1,2 @@ +This folder is used only to support [meson.build](../meson.build) `subproject` command +which would only look for a subproject in a "subprojects" directory. \ No newline at end of file diff --git a/contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt b/contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt new file mode 100644 index 0000000..4586ce6 --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR) +project(hidapi LANGUAGES C) + +file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/root") + +foreach(ROOT_ELEMENT CMakeLists.txt hidapi src windows linux mac libusb pc VERSION) + file(COPY "${CMAKE_CURRENT_LIST_DIR}/../../${ROOT_ELEMENT}" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/root/") +endforeach() + +add_subdirectory("${CMAKE_CURRENT_BINARY_DIR}/root" hidapi_root) -- cgit v1.2.3