-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
119 lines (110 loc) · 3.08 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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(ZGloom)
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "ZGloom")
set(VITA_TITLEID "JETSGLOOM")
set(VITA_VERSION "02.11")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fpermissive")
#include_directories(
# common
#)
add_executable(${PROJECT_NAME}
# src/logger.h
# src/logger.cpp
src/input.h
src/input.cpp
src/script.h
src/script.cpp
src/monsterlogic.h
src/monsterlogic.cpp
src/soundhandler.h
src/soundhandler.cpp
src/config.h
src/config.cpp
src/titlescreen.h
src/titlescreen.cpp
src/hud.h
src/hud.cpp
src/iffhandler.h
src/iffhandler.cpp
src/font.h
src/font.cpp
src/menuscreen.cpp
src/menuscreen.h
src/gamelogic.cpp
src/gamelogic.h
src/binresources.h
src/binresource.cpp
src/gloommap.h
src/gloommap.cpp
src/objectgraphics.h
src/objectgraphics.cpp
src/gloommaths.h
src/gloommaths.cpp
src/crmfile.h
src/quick.h
src/quick.cpp
src/decrunchmania.h
src/decrunchmania.cpp
src/renderer.h
src/renderer.cpp
src/zgloom.cpp
)
target_link_libraries(${PROJECT_NAME}
SDL2_mixer
SDL2
mikmod
mpg123
FLAC
vorbisfile
vorbis
ogg
xmp
SceSysmodule_stub
SceAppUtil_stub
SceLibKernel_stub
SceDisplay_stub
SceCtrl_stub
SceAudio_stub
SceSysmodule_stub
SceGxm_stub
SceCommonDialog_stub
SceAppMgr_stub
SceTouch_stub
SceHid_stub
SceMotion_stub
)
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME})
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
VERSION ${VITA_VERSION}
NAME ${VITA_APP_NAME}
FILE sce_sys/manual/001.png sce_sys/manual/001.png
FILE sce_sys/manual/002.png sce_sys/manual/002.png
FILE sce_sys/manual/003.png sce_sys/manual/003.png
FILE sce_sys/manual/004.png sce_sys/manual/004.png
FILE sce_sys/manual/005.png sce_sys/manual/005.png
FILE sce_sys/manual/006.png sce_sys/manual/006.png
FILE sce_sys/manual/007.png sce_sys/manual/007.png
FILE sce_sys/manual/008.png sce_sys/manual/008.png
FILE sce_sys/manual/009.png sce_sys/manual/009.png
FILE sce_sys/manual/010.png sce_sys/manual/010.png
FILE sce_sys/manual/011.png sce_sys/manual/011.png
FILE sce_sys/manual/012.png sce_sys/manual/012.png
FILE sce_sys/param.sfo sce_sys/param.sfo
FILE sce_sys/icon0.png sce_sys/icon0.png
FILE sce_sys/pic0.png sce_sys/pic0.png
FILE sce_sys/livearea/contents/bg.png sce_sys/livearea/contents/bg.png
FILE sce_sys/livearea/contents/startup.png sce_sys/livearea/contents/startup.png
FILE sce_sys/livearea/contents/gloomdeluxe.png sce_sys/livearea/contents/gloomdeluxe.png
FILE sce_sys/livearea/contents/gloom3.png sce_sys/livearea/contents/gloom3.png
FILE sce_sys/livearea/contents/zombiemassacre.png sce_sys/livearea/contents/zombiemassacre.png
FILE sce_sys/livearea/contents/template.xml sce_sys/livearea/contents/template.xml
)