max_ishere

psp-dev cmakelists draft 1

Apr 19th, 2021 (edited)
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.54 KB | None | 0 0
  1. macro(setup_psp_target TARGET)
  2.   set_property(TARGET ${TARGET} PROPERTY CXX_STANDARD 14)
  3.   target_compile_options(${TARGET} PUBLIC
  4.     -fno-rtti
  5.     -D_PSP_FW_VERSION=500
  6.     )
  7.   target_link_directories(${TARGET} PUBLIC ${PSPSDK}/lib)
  8.   target_link_options(${TARGET} PUBLIC
  9.     -D_PSP_FW_VERSION=${PSP_FW_VERSION}
  10.     ${PSP_LIBRARIES}
  11.     -specs=${PSPSDK}/lib/prxspecs
  12.     -Wl,-q,-T${PSPSDK}/lib/linkfile.prx
  13.     ${PSPSDK}/lib/prxexports.o
  14.     ${PSP_LIBRARIES}
  15.     -D_PSP_FW_VERSION=500
  16.     "-o ${TARGET}.elf")
  17. endmacro(setup_psp_target)
Add Comment
Please, Sign In to add comment