CMakeLists.txt
author StephaneLenclud
Thu, 05 Feb 2015 15:09:48 +0100
changeset 30 7f649078cb52
parent 12 62356e3ecb84
child 35 638eb0763e20
permissions -rw-r--r--
MDM166AA: Clock is now synchronized at the second.
     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
    14 				FutabaVfd.cpp
    15 				FutabaGP1212.cpp
    16 				FutabaGP1212A01.cpp
    17 				FutabaGP1212A02.cpp
    18 				FutabaMDM166AA.cpp
    19 				HidDevice.cpp
    20 				MiniDisplay.cpp
    21 				../../GitHub/hidapi/windows/hid.c)
    22 
    23 source_group(Souces FILES ${SOURCES})
    24 
    25 set(INCLUDES	BitArray.h
    26 				FutabaVfd.h
    27 				FutabaGP1212.h
    28 				FutabaGP1212A01.h
    29 				FutabaGP1212A02.h
    30 				FutabaMDM166AA.h
    31 				HidDevice.h
    32 				HidReport.h
    33 				MiniDisplay.h
    34 				Display.h
    35 				)
    36 
    37 source_group(Includes FILES ${INCLUDES})
    38 
    39 include_directories(../../GitHub/hidapi/hidapi)
    40 
    41 # Create a target for the library
    42 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
    43 
    44 target_link_libraries(MiniDisplay setupapi)