diff --git a/ee/CMakeLists.txt b/ee/CMakeLists.txt index b7ba17aaccaf..443973ec604a 100644 --- a/ee/CMakeLists.txt +++ b/ee/CMakeLists.txt @@ -6,4 +6,5 @@ set(EE_INC ${PS2SDKSRC_ROOT}/common/include ${PROJECT_SOURCE_DIR}/kernel/include add_subdirectory(kernel) add_subdirectory(libcglue) -add_subdirectory(debug) \ No newline at end of file +add_subdirectory(debug) +add_subdirectory(sbv) \ No newline at end of file diff --git a/ee/sbv/CMakeLists.txt b/ee/sbv/CMakeLists.txt new file mode 100644 index 000000000000..4967f3a09647 --- /dev/null +++ b/ee/sbv/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(patches) +target_include_directories(patches PUBLIC include) +target_include_directories(patches PRIVATE ${EE_INC}) +target_sources(patches PRIVATE src/smem.c src/smod.c src/slib.c + src/patch_enable_lmb.c src/patch_disable_prefix_check.c + src/patch_user_mem_clear.c src/patch_fileio.c src/common.c + #src/erl-support.c TODO +) + +file(GLOB PATCHES_INCLUDE_FILES "include/*.h*") +set_target_properties(kernel PROPERTIES PUBLIC_HEADER "${PATCHES_INCLUDE_FILES}") + +install(TARGETS patches) +