cmake_minimum_required(VERSION 3.10.2)

add_definitions("-DANDROID_NDK")
add_definitions("-D__ANDROID__")

add_library(GameCore SHARED
		NativeEngine.cpp
)

find_library(log-lib log)

target_compile_options(GameCore PRIVATE -fexceptions)

target_link_libraries( # Specifies the target library.
        GameCore

        OpenSLES
        android
        EGL
        GLESv3
        m
        z

		${CMAKE_CURRENT_SOURCE_DIR}../../app/src/main/jniLibs/${CMAKE_ANDROID_ARCH_ABI}/libNoesis.so

		# Links the target library to the log library
        # included in the NDK.
        ${log-lib})
