Android Android Native Executable?

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,882
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
5,453
Country
United States
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.
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;
}
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    BakerMan @ BakerMan: stormy as hell over here