CMakeLists.txt
author sl
Thu, 10 Jul 2014 22:05:18 +0200
changeset 6 b1c1b2be9a1c
child 8 5a9dbbc40c6b
permissions -rw-r--r--
Async requests for power supply status, device id and firmware revision are now working.
     1 cmake_minimum_required(VERSION 2.8)
     2 
     3 project(MiniDisplay)
     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
     7 set (LIB_TYPE STATIC)
     8 if (MD_SHARED_LIB)
     9   # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
    10   set (LIB_TYPE SHARED)
    11 endif (MD_SHARED_LIB)
    12 
    13 set(SOURCES BitArray.cpp FutabaVfd.cpp HidDevice.cpp MiniDisplay.cpp ../../GitHub/hidapi/windows/hid.c)
    14 source_group(Souces FILES ${SOURCES})
    15 
    16 set(INCLUDES BitArray.h FutabaVfd.h HidDevice.h HidReport.h MiniDisplay.h)
    17 source_group(Includes FILES ${INCLUDES})
    18 
    19 include_directories(../../GitHub/hidapi/hidapi)
    20 
    21 # Create a target for the library
    22 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
    23 
    24 target_link_libraries(MiniDisplay setupapi)