1cmake_minimum_required(VERSION 3.4.1)
2
3set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Werror -Wthread-safety -D _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" )
4
5# ============== Games SDK
6
7# This builds and uses swappy as a static library from a gamesdk package
8include("../../gamesdk.cmake")
9add_gamesdk_target("package/local" "localBuild")
10
11include_directories( ../../common/include ) # Samples Includes
12
13# ============== Bouncy Ball
14
15include_directories( src/main/cpp )
16
17add_library( native-lib
18
19             SHARED
20
21             src/main/cpp/Circle.cpp
22             src/main/cpp/Orbit.cpp
23             src/main/cpp/Renderer.cpp
24             src/main/cpp/Settings.cpp
25             ../../../samples/common/src/Thread.cpp
26        )
27
28target_link_libraries( native-lib
29
30                       android
31                       EGL
32                       GLESv2
33                       log
34                       gamesdk
35                       )
36