mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 05:19:18 +01:00
19 lines
626 B
CMake
19 lines
626 B
CMake
cmake_minimum_required (VERSION 3.2)
|
|
project(Lightswitch VERSION 1 LANGUAGES CXX)
|
|
set_property(GLOBAL PROPERTY CMAKE_CXX_STANDARD 17 PROPERTY CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
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)
|