Skip to content

Commit

Permalink
Merge pull request #2 from sharkwouter/cmake-build
Browse files Browse the repository at this point in the history
Add CMakeLists.txt
  • Loading branch information
fjtrujy authored Dec 25, 2021
2 parents e9c2d5a + 41e3327 commit 20d1cf6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 20d1cf6

Please sign in to comment.