File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
2-
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
9-
101list (APPEND HIDAPI_PUBLIC_HEADERS "hidapi_libusb.h" )
112
123add_library (hidapi_libusb
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
2-
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
9-
101add_library (hidapi_hidraw
112 ${HIDAPI_PUBLIC_HEADERS}
123 hid.c
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.4.3...3.25 FATAL_ERROR )
2-
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
9-
101list (APPEND HIDAPI_PUBLIC_HEADERS "hidapi_darwin.h" )
112
123add_library (hidapi_darwin
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
2-
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
9-
101add_library (hidapi_netbsd
112 ${HIDAPI_PUBLIC_HEADERS}
123 hid.c
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ project(hidapi VERSION "${VERSION}" LANGUAGES C)
2626
2727# Defaults and required options
2828
29+ foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
30+ if (POLICY ${HIDAPI_CMAKE_POLICY} )
31+ cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
32+ endif ()
33+ endforeach ()
34+ unset (HIDAPI_CMAKE_POLICY)
35+
2936if (NOT DEFINED HIDAPI_WITH_TESTS)
3037 set (HIDAPI_WITH_TESTS OFF )
3138endif ()
You can’t perform that action at this time.
0 commit comments