android-project/app/jni/src/CMakeLists.txt
author Sylvain Becker
Sun, 11 Aug 2019 15:23:37 +0200
changeset 13006 4a410f099040
permissions -rw-r--r--
Fixed bug 3918 - CMake support for android project
sylvain@13006
     1
cmake_minimum_required(VERSION 3.6)
sylvain@13006
     2
sylvain@13006
     3
project(MY_APP)
sylvain@13006
     4
sylvain@13006
     5
find_library(SDL2 SDL2)
sylvain@13006
     6
sylvain@13006
     7
add_library(main SHARED)
sylvain@13006
     8
sylvain@13006
     9
target_sources(main PRIVATE YourSourceHere.c)
sylvain@13006
    10
sylvain@13006
    11
target_link_libraries(main SDL2)
sylvain@13006
    12
sylvain@13006
    13