-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
64 lines (55 loc) · 1.15 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
cmake_minimum_required(VERSION 3.10)
project(CCR)
include_directories(${PROJECT_SOURCE_DIR})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu17 -g") #-fsanitize=address")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -g") #-fsanitize=address")
set(SRC_FILES
"src/CFrame.cpp"
"src/COIList.cpp"
"src/CRender.cpp"
"src/CLOList.cpp"
"src/COI.cpp"
"src/CImageBank.cpp"
"src/CObjectCommon.cpp"
"src/CAnimHeader.cpp"
"src/CAnim.cpp"
"src/CAnimDir.cpp"
"src/CRun.cpp"
"src/main.cpp"
)
include_directories("src/include")
include_directories("nanovg")
add_executable(${PROJECT_NAME} ${SRC_FILES})
if(NOT PSP)
target_link_libraries(${PROJECT_NAME}
SDL2
SDL2_image
SDL2_mixer
z
libnanovg.a
GL
glfw
glew
)
endif()
if(PSP)
target_link_libraries(${PROJECT_NAME}
png
osl
jpeg
z
pspgu
pspge
pspdisplay
psppower
psphprm
pspaudio
pspctrl
m
pspvram
)
create_pbp_file(TARGET ${PROJECT_NAME} TITLE "${CMAKE_PROJECT_NAME}"
ICON_PATH ICON0.png
BACKGROUND_PATH ICON1.png
)
endif()