Implementing and C API to control our MiniDisplay.
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 FutabaVfd.cpp HidDevice.cpp MiniDisplay.cpp ../../GitHub/hidapi/windows/hid.c)
14 source_group(Souces FILES ${SOURCES})
16 set(INCLUDES BitArray.h FutabaVfd.h HidDevice.h HidReport.h MiniDisplay.h)
17 source_group(Includes FILES ${INCLUDES})
19 include_directories(../../GitHub/hidapi/hidapi)
21 # Create a target for the library
22 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
24 target_link_libraries(MiniDisplay setupapi)