2019-06-29 19:05:24 +05:30
|
|
|
cmake_minimum_required (VERSION 3.2)
|
2019-06-29 09:56:13 -04:00
|
|
|
project(Lightswitch VERSION 1 LANGUAGES CXX)
|
2019-06-29 19:05:24 +05:30
|
|
|
set_property(GLOBAL PROPERTY CMAKE_CXX_STANDARD 17 PROPERTY CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
|
2019-06-29 09:53:37 -04:00
|
|
|
set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)
|
2019-06-29 12:13:36 -04:00
|
|
|
|
2019-06-29 09:56:13 -04:00
|
|
|
include_directories(${source_DIR}/include)
|
2019-07-02 21:00:57 +01:00
|
|
|
include_directories(${source_DIR})
|
2019-06-29 12:13:36 -04:00
|
|
|
|
2019-06-30 14:26:57 +01:00
|
|
|
add_library(lightswitch SHARED
|
|
|
|
${source_DIR}/lightswitch.cpp
|
|
|
|
${source_DIR}/core/arm/cpu.cpp
|
2019-06-30 15:39:56 +01:00
|
|
|
${source_DIR}/core/arm/memory.cpp
|
2019-06-30 14:26:57 +01:00
|
|
|
|
2019-07-02 21:00:57 +01:00
|
|
|
${source_DIR}/core/hos/kernel/svc.cpp
|
2019-06-30 14:26:57 +01:00
|
|
|
${source_DIR}/core/hos/loaders/nro.cpp
|
|
|
|
)
|
2019-06-30 15:39:56 +01:00
|
|
|
target_link_libraries(lightswitch ${source_DIR}/lib/${ANDROID_ABI}/libunicorn.a)
|