-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
51 lines (35 loc) · 1.07 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 2.8)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
if(DEFINED ENV{VITASDK})
set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file")
else()
message(FATAL_ERROR "Please define VITASDK to point to your SDK path!")
endif()
endif()
project(PUP-Extractor)
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "PUP-Extractor")
set(VITA_TITLEID "PSP2PUP00")
set(VITA_VERSION "01.30")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d PARENTAL_LEVEL=1")
add_executable(${PROJECT_NAME}
src/main.c
src/ctrl.c
src/graphics.c
src/font.c
src/file_io.c
src/get_process.c
)
target_link_libraries(${PROJECT_NAME}
SceCtrl_stub
SceDisplay_stub
SceGxm_stub
SceSysmodule_stub
)
vita_create_self(eboot.bin ${PROJECT_NAME} UNSAFE)
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} eboot.bin
VERSION ${VITA_VERSION}
NAME ${VITA_APP_NAME}
)