Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added install step to cmake
  • Loading branch information
jpihl committed Jan 19, 2021
1 parent 11ba750 commit ca44f55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 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)
2 changes: 1 addition & 1 deletion NEWS.rst
Expand Up @@ -6,7 +6,7 @@ every change, see the Git log.

Latest
------
* tbd
* Minor: Added install step to CMake.

3.4.0
-----
Expand Down
4 changes: 3 additions & 1 deletion src/platform/config.hpp
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit ca44f55

Please sign in to comment.