-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
85 lines (77 loc) · 1.65 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
cmake_minimum_required(VERSION 2.8)
# VitaSDK defines
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 start
set(VITA_APPNAME ZeldaROTH)
set(VITA_TITLEID "ZERO00001")
set(VITA_VERSION "01.00")
project(${VITA_APPNAME})
include("${VITASDK}/share/vita.cmake" REQUIRED)
# Flags and includes
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__PSP2__ -fno-exceptions")
link_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
# Builds
add_executable(${VITA_APPNAME}
Audio.cpp
Bouclier.cpp
Caisse.cpp
Carte.cpp
Encyclopedie.cpp
Ennemi.cpp
Generique.cpp
Jeu.cpp
Joueur.cpp
Keyboard.cpp
Listable.cpp
main.cpp
Menu.cpp
Monde.cpp
Objet.cpp
Personnage.cpp
Pnj.cpp
Projectile.cpp
Snipe.cpp
Statut.cpp
Texte.cpp
ZoneRect.cpp
)
target_link_libraries(${VITA_APPNAME}
SDL_gfx
SDL_mixer
SDL_image
SDL
vorbisfile
vorbis
ogg
jpeg
png
vita2d
z
SceAppMgr_stub
SceAudio_stub
SceCtrl_stub
SceDisplay_stub
SceGxm_stub
SceNetCtl_stub
ScePower_stub
SceSysmodule_stub
SceTouch_stub
)
# Create Vita artifacts
vita_create_self(${VITA_APPNAME}.self ${VITA_APPNAME} SAFE)
vita_create_vpk(${VITA_APPNAME}_fr.vpk ${VITA_TITLEID} ${VITA_APPNAME}.self
VERSION ${VITA_VERSION}
NAME ${VITA_APPNAME}
FILE res/icon0.png sce_sys/icon0.png
FILE res/bg.png sce_sys/livearea/contents/bg.png
FILE res/startup.png sce_sys/livearea/contents/startup.png
FILE res/template.xml sce_sys/livearea/contents/template.xml
)