summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake')
-rw-r--r--contrib/SDL-3.2.8/src/hidapi/subprojects/hidapi_build_cmake/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
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 @@
1cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
2project(hidapi LANGUAGES C)
3
4file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/root")
5
6foreach(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/")
8endforeach()
9
10add_subdirectory("${CMAKE_CURRENT_BINARY_DIR}/root" hidapi_root)