# HG changeset patch # User sl # Date 1404067095 -7200 # Node ID dd5eef0de75accb4e6bf186d25beb33c5812edd8 # Parent 0f874d9e4130921795f48c35c4ee9596f9cbcea5 Adding CMake file. diff -r 0f874d9e4130 -r dd5eef0de75a CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CMakeLists.txt Sun Jun 29 20:38:15 2014 +0200 @@ -0,0 +1,24 @@ +cmake_minimum_required(VERSION 2.8) + +project(MiniDisplay) +# Allow the developer to select if Dynamic or Static libraries are built +option (MD_SHARED_LIB "Build Shared Libraries" ON) +# Set the LIB_TYPE variable to STATIC +set (LIB_TYPE STATIC) +if (MD_SHARED_LIB) + # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED' + set (LIB_TYPE SHARED) +endif (MD_SHARED_LIB) + +set(SOURCES BitArray.cpp FutabaVfd.cpp HidDevice.cpp MiniDisplay.cpp ../../GitHub/hidapi/windows/hid.c) +source_group(Souces FILES ${SOURCES}) + +set(INCLUDES BitArray.h FutabaVfd.h HidDevice.h HidReport.h MiniDisplay.h) +source_group(Includes FILES ${INCLUDES}) + +include_directories(../../GitHub/hidapi/hidapi) + +# Create a target for the library +add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES}) + +target_link_libraries(MiniDisplay setupapi) \ No newline at end of file diff -r 0f874d9e4130 -r dd5eef0de75a MiniDisplay.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MiniDisplay.h Sun Jun 29 20:38:15 2014 +0200 @@ -0,0 +1,28 @@ +// +// +// + +#ifndef MINI_DISPLAY_H +#define MINI_DISPLAY_H + +/** +*/ +class IMiniDisplay + { +public: + + }; + + +/** +*/ +class MiniDisplay + { + static IMiniDisplay* Create(); + + }; + + + +#endif +