diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bcbfe7065..f426ca7e4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ cmake_minimum_required(VERSION 2.8) project(Retro) -if(CMAKE_SYSTEM_NAME MATCHES Retro68) +if(CMAKE_SYSTEM_NAME MATCHES Retro68 OR CMAKE_SYSTEM_NAME MATCHES RetroPPC) set( REZ_TEMPLATES_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libretro) diff --git a/libretro/CMakeLists.txt b/libretro/CMakeLists.txt index fe8a333016..b2a619bae3 100644 --- a/libretro/CMakeLists.txt +++ b/libretro/CMakeLists.txt @@ -23,18 +23,26 @@ cmake_minimum_required(VERSION 2.8) +if(CMAKE_SYSTEM_NAME MATCHES Retro68) + set(ARCH_FILES + Retro68Runtime.h + start.c + relocate.c + glue.c + Retro68.r + Retro68APPL.r + ) + install(FILES Retro68Runtime.h DESTINATION include) + install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes) +else() + set(ARCH_FILES) +endif() + add_library(retrocrt - Retro68Runtime.h - start.c - relocate.c malloc.c syscalls.c - glue.c consolehooks.c - Retro68.r - Retro68APPL.r + ${ARCH_FILES} ) install(TARGETS retrocrt DESTINATION lib) -install(FILES Retro68Runtime.h DESTINATION include) -install(FILES Retro68.r Retro68APPL.r DESTINATION RIncludes)