Skip to content

Commit

Permalink
SDL2: Add dummy target for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 26, 2019
1 parent ef35118 commit 2517580
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/SDL2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.0)
cmake_minimum_required (VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
Expand All @@ -11,6 +11,9 @@ find_package(SDL2 CONFIG REQUIRED)

if(ANDROID)
add_library(main SHARED main.cpp)
elseif(IOS)
# FIXME
add_library(main dummy.cpp)
else()
add_executable(main main.cpp)
endif()
Expand Down
4 changes: 4 additions & 0 deletions examples/SDL2/dummy.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
int dummy()
{
return 42;
}

0 comments on commit 2517580

Please sign in to comment.