2019-07-25 01:49:43 +05:30
|
|
|
cmake_minimum_required(VERSION 3.8)
|
2019-09-25 02:24:27 +05:30
|
|
|
project(Skyline VERSION 1 LANGUAGES CXX)
|
2019-06-29 19:05:24 +05:30
|
|
|
|
2019-09-05 18:12:19 +05:30
|
|
|
set(BUILD_TESTING OFF)
|
2019-07-25 01:49:43 +05:30
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
2019-09-05 18:12:19 +05:30
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -flto=full")
|
2019-07-25 01:49:43 +05:30
|
|
|
add_subdirectory("libraries/tinyxml2")
|
|
|
|
add_subdirectory("libraries/fmt")
|
|
|
|
|
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-07-02 21:00:57 +01:00
|
|
|
include_directories(${source_DIR})
|
2019-06-29 12:13:36 -04:00
|
|
|
|
2019-09-25 02:24:27 +05:30
|
|
|
add_library(skyline SHARED
|
|
|
|
${source_DIR}/main.cpp
|
|
|
|
${source_DIR}/skyline/common.cpp
|
|
|
|
${source_DIR}/skyline/nce.cpp
|
|
|
|
${source_DIR}/skyline/os.cpp
|
|
|
|
${source_DIR}/skyline/loader/nro.cpp
|
|
|
|
${source_DIR}/skyline/kernel/ipc.cpp
|
|
|
|
${source_DIR}/skyline/kernel/svc.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KSyncObject.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KProcess.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KThread.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KSharedMemory.cpp
|
|
|
|
${source_DIR}/skyline/kernel/types/KPrivateMemory.cpp
|
|
|
|
${source_DIR}/skyline/kernel/services/serviceman.cpp
|
|
|
|
${source_DIR}/skyline/kernel/services/sm/sm.cpp
|
|
|
|
${source_DIR}/skyline/kernel/services/set/sys.cpp
|
|
|
|
${source_DIR}/skyline/kernel/services/apm/apm.cpp
|
|
|
|
${source_DIR}/skyline/kernel/services/am/appletOE.cpp
|
2019-07-25 01:49:43 +05:30
|
|
|
)
|
2019-09-25 02:24:27 +05:30
|
|
|
target_link_libraries(skyline fmt tinyxml2)
|
|
|
|
target_compile_options(skyline PRIVATE -Wno-c++17-extensions)
|