diff --git a/CMakeLists.txt b/CMakeLists.txt index fb7158e..5ec4c35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,11 @@ cmake_minimum_required (VERSION 3.10) project(platform) +file(GLOB platform_headers ./src/platform/*.hpp) + add_library(platform INTERFACE) add_library(steinwurf::platform ALIAS platform) target_include_directories(platform INTERFACE src/) + +install(FILES ${platform_headers} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/platform) diff --git a/NEWS.rst b/NEWS.rst index 772929f..9ff8981 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -6,7 +6,7 @@ every change, see the Git log. Latest ------ -* tbd +* Minor: Added install step to CMake. 3.4.0 ----- diff --git a/src/platform/config.hpp b/src/platform/config.hpp index 570fda7..943d1af 100644 --- a/src/platform/config.hpp +++ b/src/platform/config.hpp @@ -13,7 +13,7 @@ // Detect operating systems #if defined(__linux__) #define PLATFORM_LINUX 1 - #if defined(__ANDROID__) + #if defined(ANDROID) || defined(__ANDROID__) #define PLATFORM_ANDROID 1 #endif #elif defined(_WIN32) @@ -33,6 +33,8 @@ #endif #elif defined(__EMSCRIPTEN__) #define PLATFORM_EMSCRIPTEN 1 +#elif defined(ARDUINO) + #define PLATFORM_ARDUINO 1 #else #error "Unable to determine operating system" #endif