-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
46 lines (40 loc) · 1.12 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
cmake_minimum_required(VERSION 3.2)
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(tvikey)
include("${VITASDK}/share/vita.cmake" REQUIRED)
add_executable(${PROJECT_NAME}_kernel
src/devices/process_bind.c
src/devices/mouse.c
src/devices/keyboard.c
src/inputdevice.c
src/util/ini.c
src/main.c
)
target_link_libraries(${PROJECT_NAME}_kernel
SceCtrlForDriver_stub
SceDebugForDriver_stub
SceIofilemgrForDriver_stub
SceKernelSuspendForDriver_stub
SceProcEventForDriver_stub
SceSblAIMgrForDriver_stub
SceSysclibForDriver_stub
SceSysmemForDriver_stub
SceSysrootForKernel_stub
SceThreadmgrForDriver_stub
SceUsbdForDriver_stub
SceUsbServForDriver_stub
taihenForKernel_stub
)
set_target_properties(${PROJECT_NAME}_kernel
PROPERTIES LINK_FLAGS "-nostdlib"
)
vita_create_self(${PROJECT_NAME}.skprx ${PROJECT_NAME}_kernel
CONFIG ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}_kernel.yml
UNSAFE
)