towards building libretro

This commit is contained in:
Wolfgang Thaller 2015-08-31 16:44:45 +02:00
parent de5ea08375
commit 1c6c1ddd9f
2 changed files with 17 additions and 9 deletions

View File

@ -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)

View File

@ -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)