diff options
| author | 3gg <3gg@shellblade.net> | 2026-03-06 13:26:57 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-03-06 13:26:57 -0800 |
| commit | f5c89b3bd5d74849757fd5b4d1a300068522a3ca (patch) | |
| tree | d6f6e4c81745b393d7594b334710f30c0b2df3bd /SDL-3.2.8/src/hidapi/subprojects | |
Diffstat (limited to 'SDL-3.2.8/src/hidapi/subprojects')
| -rw-r--r-- | SDL-3.2.8/src/hidapi/subprojects/README.md | 2 | ||||
| -rw-r--r-- | SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/SDL-3.2.8/src/hidapi/subprojects/README.md b/SDL-3.2.8/src/hidapi/subprojects/README.md new file mode 100644 index 0000000..8ba8f60 --- /dev/null +++ b/SDL-3.2.8/src/hidapi/subprojects/README.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | This folder is used only to support [meson.build](../meson.build) `subproject` command | ||
| 2 | which would only look for a subproject in a "subprojects" directory. \ No newline at end of file | ||
diff --git a/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt b/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt new file mode 100644 index 0000000..4586ce6 --- /dev/null +++ b/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR) | ||
| 2 | project(hidapi LANGUAGES C) | ||
| 3 | |||
| 4 | file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/root") | ||
| 5 | |||
| 6 | foreach(ROOT_ELEMENT CMakeLists.txt hidapi src windows linux mac libusb pc VERSION) | ||
| 7 | file(COPY "${CMAKE_CURRENT_LIST_DIR}/../../${ROOT_ELEMENT}" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/root/") | ||
| 8 | endforeach() | ||
| 9 | |||
| 10 | add_subdirectory("${CMAKE_CURRENT_BINARY_DIR}/root" hidapi_root) | ||
