-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (59 loc) · 1.77 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
cmake_minimum_required(VERSION 3.16)
project(vitanet)
if (VITA)
include("${VITASDK}/share/vita.cmake" REQUIRED)
message(INFO "${VITASDK}")
endif ()
find_package(SDL REQUIRED)
set(VITA_APP_NAME "VitaNet")
set(VITA_TITLEID "VNET02121")
set(VITA_VERSION "01.00")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Ofast")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast")
set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d PARENTAL_LEVEL=1")
include_directories("${SDL_INCLUDE_DIR}")
add_executable(${PROJECT_NAME}.elf
main.cpp
request_tools.cpp server_conn.cpp graph.cpp video.cpp
input.cpp)
target_link_libraries(${PROJECT_NAME}.elf
curlpp
curl
z
ssl
crypto
SDL
SDL_image
SDL_gfx
)
if (VITA)
target_link_libraries(${PROJECT_NAME}.elf
SceSysmodule_stub
SceDisplay_stub
SceNet_stub
SceNetCtl_stub
SceHttp_stub
SceCtrl_stub
SceAudio_stub
SceHid_stub
SceCommonDialog_stub
SceIme_stub
SceAppUtil_stub
jpeg
png
webp
pthread
)
vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME}.elf)
vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
VERSION ${VITA_VERSION}
NAME ${VITA_APP_NAME}
FILE kyuhen.png sce_sys/pic0.png
FILE icon.png sce_sys/icon0.png
FILE icon.png sce_sys/livearea/contents/logo0.png
FILE bg.png sce_sys/livearea/contents/bg.png
FILE template.xml sce_sys/livearea/contents/template.xml
FILE kyuhen.png sce_sys/livearea/contents/startup.png
)
endif ()