Trying to sort out our interop nicely.
2 # Copyright (C) 2014-2015 Stéphane Lenclud.
4 # This file is part of MiniDisplay.
6 # MiniDisplay is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # MiniDisplay is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with MiniDisplay. If not, see <http:#www.gnu.org/licenses/>.
20 cmake_minimum_required(VERSION 2.8)
23 # Allow the developer to select if Dynamic or Static libraries are built
24 option (MD_SHARED_LIB "Build Shared Libraries" ON)
25 # Set the LIB_TYPE variable to STATIC
28 # User wants to build Dynamic Libraries, so change the LIB_TYPE variable to CMake keyword 'SHARED'
32 set(SOURCES BitArray.cpp
40 ../../GitHub/hidapi/windows/hid.c)
42 source_group(Souces FILES ${SOURCES})
44 set(INCLUDES BitArray.h
56 source_group(Includes FILES ${INCLUDES})
58 include_directories(../../GitHub/hidapi/hidapi)
60 # Create a target for the library
61 add_library(MiniDisplay ${LIB_TYPE} ${SOURCES} ${INCLUDES})
63 target_link_libraries(MiniDisplay setupapi)