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"
        )

