mirror of https://github.com/libsdl-org/SDL
hidapi: minor sync with mainstream (for sake of symmetry, only.)
This commit is contained in:
parent
fb87f8f15c
commit
26e3ca7387
|
@ -159,7 +159,7 @@ endif()
|
|||
HIDAPI can be easily used as a subdirectory of a larger CMake project:
|
||||
```cmake
|
||||
# root CMakeLists.txt
|
||||
cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.4.3...3.25 FATAL_ERROR)
|
||||
|
||||
add_subdirectory(hidapi)
|
||||
add_subdirectory(my_application)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
|
||||
|
||||
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
add_subdirectory(src)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
|
||||
project(hidtest C)
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
|
||||
|
||||
list(APPEND HIDAPI_PUBLIC_HEADERS "hidapi_libusb.h")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
|
||||
|
||||
add_library(hidapi_hidraw
|
||||
${HIDAPI_PUBLIC_HEADERS}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.4.3...3.25 FATAL_ERROR)
|
||||
|
||||
list(APPEND HIDAPI_PUBLIC_HEADERS "hidapi_darwin.h")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.6.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.6.3...3.25 FATAL_ERROR)
|
||||
|
||||
add_library(hidapi_netbsd
|
||||
${HIDAPI_PUBLIC_HEADERS}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.1.3...3.25 FATAL_ERROR)
|
||||
project(hidapi LANGUAGES C)
|
||||
|
||||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/root")
|
||||
|
|
Loading…
Reference in New Issue