Add as include directory

This commit is contained in:
Ryan Teal 2019-07-02 21:00:57 +01:00
parent 8080760cd5
commit ffbcf0fb33
No known key found for this signature in database
GPG Key ID: 8DBEE0F12C7E2D23
2 changed files with 4 additions and 2 deletions

View File

@ -5,12 +5,14 @@ set_property(GLOBAL PROPERTY CMAKE_CXX_STANDARD 17 PROPERTY CMAKE_CXX_STANDARD_R
set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)
include_directories(${source_DIR}/include)
include_directories(${source_DIR})
add_library(lightswitch SHARED
${source_DIR}/lightswitch.cpp
${source_DIR}/core/arm/cpu.cpp
${source_DIR}/core/arm/memory.cpp
${source_DIR}/core/hos/kernel/svc.cpp
${source_DIR}/core/hos/loaders/nro.cpp
)
target_link_libraries(lightswitch ${source_DIR}/lib/${ANDROID_ABI}/libunicorn.a)

View File

@ -2,8 +2,8 @@
#include <syslog.h>
#include <sys/mman.h>
#include <vector>
#include "../../arm/cpu.h"
#include "../../arm/memory.h"
#include "core/arm/cpu.h"
#include "core/arm/memory.h"
#include "nro.h"
void ReadDataFromFile(std::string file, char* output, uint32_t offset, size_t size)