- Joined
- Jul 7, 2010
- Messages
- 3,882
- Trophies
- 2
- Location
- /dev/random
- Website
- www.gudenau.net
- XP
- 5,453
- Country
How could I make an Android application come with an executable in the assets? When I build my project the natives do not show up in the assets folder at all.
My CMakeLists.txt file.
My test.c.
My CMakeLists.txt file.
Code:
cmake_minimum_required(VERSION 3.4.1)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/assets/${ANDROID_ABI}")
add_executable(native-test src/main/natives/source/test.c)
include_directories(src/main/natives/include/)
My test.c.
Code:
//
// Created by gudenau on 7/5/2017.
//
#include <stdio.h>
int main(int argc, char ** argv){
printf("Hello world!\n");
return 0;
}