Fixed bug 3918 - CMake support for android project
This commit is contained in:
parent
102850e1bd
commit
79da113ed7
5 changed files with 64 additions and 2 deletions
13
android-project/app/jni/src/CMakeLists.txt
Normal file
13
android-project/app/jni/src/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
project(MY_APP)
|
||||
|
||||
find_library(SDL2 SDL2)
|
||||
|
||||
add_library(main SHARED)
|
||||
|
||||
target_sources(main PRIVATE YourSourceHere.c)
|
||||
|
||||
target_link_libraries(main SDL2)
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue