author | StephaneLenclud |
Wed, 04 Feb 2015 21:53:06 +0100 | |
changeset 26 | f943cd500390 |
parent 12 | 62356e3ecb84 |
child 35 | 638eb0763e20 |
permissions | -rw-r--r-- |
sl@1 | 1 |
cmake_minimum_required(VERSION 2.8) |
sl@1 | 2 |
|
sl@1 | 3 |
project(MiniDisplay) |
sl@1 | 4 |
# Allow the developer to select if Dynamic or Static libraries are built |
sl@1 | 5 |
option (MD_SHARED_LIB "Build Shared Libraries" ON) |
sl@1 | 6 |
# Set the LIB_TYPE variable to STATIC |
sl@1 | 7 |
set (LIB_TYPE STATIC) |
sl@1 | 8 |
if (MD_SHARED_LIB) |
sl@1 | 9 |
# User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED' |
sl@1 | 10 |
set (LIB_TYPE SHARED) |
sl@1 | 11 |
endif (MD_SHARED_LIB) |
sl@1 | 12 |
|
sl@8 | 13 |
set(SOURCES BitArray.cpp |
sl@8 | 14 |
FutabaVfd.cpp |
sl@8 | 15 |
FutabaGP1212.cpp |
sl@8 | 16 |
FutabaGP1212A01.cpp |
sl@8 | 17 |
FutabaGP1212A02.cpp |
StephaneLenclud@25 | 18 |
FutabaMDM166AA.cpp |
sl@8 | 19 |
HidDevice.cpp |
sl@8 | 20 |
MiniDisplay.cpp |
sl@8 | 21 |
../../GitHub/hidapi/windows/hid.c) |
sl@8 | 22 |
|
sl@1 | 23 |
source_group(Souces FILES ${SOURCES}) |
sl@1 | 24 |
|
sl@8 | 25 |
set(INCLUDES BitArray.h |
sl@8 | 26 |
FutabaVfd.h |
sl@8 | 27 |
FutabaGP1212.h |
sl@8 | 28 |
FutabaGP1212A01.h |
sl@8 | 29 |
FutabaGP1212A02.h |
StephaneLenclud@25 | 30 |
FutabaMDM166AA.h |
sl@8 | 31 |
HidDevice.h |
sl@8 | 32 |
HidReport.h |
sl@12 | 33 |
MiniDisplay.h |
sl@12 | 34 |
Display.h |
sl@12 | 35 |
) |
sl@8 | 36 |
|
sl@1 | 37 |
source_group(Includes FILES ${INCLUDES}) |
sl@1 | 38 |
|
sl@1 | 39 |
include_directories(../../GitHub/hidapi/hidapi) |
sl@1 | 40 |
|
sl@1 | 41 |
# Create a target for the library |
sl@1 | 42 |
add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES}) |
sl@1 | 43 |
|
sl@1 | 44 |
target_link_libraries(MiniDisplay setupapi) |