Now having only one generic request API.
That will help us support different display types.
1 cmake_minimum_required(VERSION 2.8)
4 # Allow the developer to select if Dynamic or Static libraries are built
5 option (MD_SHARED_LIB "Build Shared Libraries" ON)
6 # Set the LIB_TYPE variable to STATIC
9 # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
13 set(SOURCES BitArray.cpp
20 ../../GitHub/hidapi/windows/hid.c)
22 source_group(Souces FILES ${SOURCES})
24 set(INCLUDES BitArray.h
33 source_group(Includes FILES ${INCLUDES})
35 include_directories(../../GitHub/hidapi/hidapi)
37 # Create a target for the library
38 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
40 target_link_libraries(MiniDisplay setupapi)