From 41e3327fb863915b5d1bbcc040eb99c89fcc8b69 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Fri, 24 Dec 2021 20:49:28 +0100 Subject: [PATCH] Add CMakeLists.txt --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ed8fea1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.0) + +project(libpspvram) + +if(NOT PSP) + message(FATAL_ERROR "These libraries can only be build for the PSP") +endif() + +add_compile_options(-G0 -mno-explicit-relocs -O2 -Wall -Werror -g) + +add_library(pspvalloc valloc.c) +add_library(pspvram vram.c) + +install(TARGETS pspvalloc pspvram DESTINATION lib) +install(FILES valloc.h vram.h DESTINATION include)