forked from bartvdbraak/blender
Brecht Van Lommel
e7c6b244c9
Note these are intended for platform maintainers, we do not intend to support users making their own builds with these. For that precompiled libraries from lib/ should be used. Implemented by Martijn Berger, Ray Molenkamp and Brecht Van Lommel. Differential Revision: https://developer.blender.org/D2753
21 lines
352 B
Plaintext
21 lines
352 B
Plaintext
cmake_minimum_required(VERSION 2.8)
|
|
project(hidapi)
|
|
|
|
set(SRC_FILES
|
|
windows/hid.c
|
|
)
|
|
|
|
set(HEADER_FILES
|
|
hidapi/hidapi.h
|
|
)
|
|
include_directories(hidapi)
|
|
add_definitions(-DHID_API_STATIC)
|
|
add_library(hidapi STATIC ${SRC_FILES} ${HEADER_FILES})
|
|
|
|
install(TARGETS hidapi DESTINATION lib)
|
|
|
|
INSTALL(FILES hidapi/hidapi.h
|
|
DESTINATION "include"
|
|
)
|
|
|