-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
71 lines (60 loc) · 1.38 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
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 "Mad Bomber Vita")
set(VITA_TITLEID "BOMB00001")
set(VITA_VERSION "01.00")
set(PROJECT_NAME Mad_Bomber_Vita)
project(${PROJECT_NAME})
include("${VITASDK}/share/vita.cmake" REQUIRED)
# Flags and includes
set(DATA_PREFIX "app0:data/")
set(NOSOUNDFLAG __SOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-exceptions")
add_definitions(-DVITA)
add_definitions(-D${NOSOUNDFLAG})
add_definitions(-DDATA_PREFIX=\"${DATA_PREFIX}\")
include_directories(
)
link_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
# Builds
add_executable(${PROJECT_NAME}
madbomber.c
)
target_link_libraries(${PROJECT_NAME}
SDL_mixer
SDL_image
SDL
vorbisidec
stdc++
mikmod
vita2d
m
z
SceAppUtil_stub
SceAudio_stub
SceCommonDialog_stub
SceCtrl_stub
SceDisplay_stub
SceGxm_stub
SceSysmodule_stub
SceTouch_stub
SceHid_stub
)
# Create Vita artifacts
vita_create_self(eboot.bin ${PROJECT_NAME} SAFE)
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} eboot.bin
VERSION ${VITA_VERSION}
NAME ${VITA_APPNAME}
FILE data data
FILE sce_sys sce_sys
)