-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
65 lines (53 loc) · 1.33 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
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(vitacompanion)
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -O3 -fno-pic -fno-PIC -std=gnu99")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions")
include_directories(
)
link_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
add_executable(vitacompanion
src/main.c
src/main.h
src/log.c
src/log.h
src/cmd.c
src/cmd.h
src/net.c
src/net.h
src/parser.c
src/parser.h
src/cmd_definitions.c
src/cmd_definitions.h)
target_link_libraries(vitacompanion
taipool
taihen_stub
ftpvita
k
gcc
SceLibKernel_stub_weak
SceNet_stub_weak
SceNetCtl_stub_weak
SceSysmodule_stub_weak
SceKernelThreadMgr_stub_weak
SceIofilemgr_stub_weak
SceRtc_stub_weak
SceAppMgr_stub
ScePower_stub
)
set_target_properties(vitacompanion
PROPERTIES LINK_FLAGS "-nostdlib"
)
vita_create_self(vitacompanion.suprx vitacompanion
UNSAFE
CONFIG ${CMAKE_SOURCE_DIR}/vitacompanion.yml
)