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
35 source_group(Includes FILES ${INCLUDES})
37 include_directories(../../GitHub/hidapi/hidapi)
39 # Create a target for the library
40 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
42 target_link_libraries(MiniDisplay setupapi)