-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
92 lines (82 loc) · 1.99 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
cmake_minimum_required (VERSION 3.0)
project (pureikyubu)
# Choose an X86/X64 build
if (CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
set(X86 OFF)
set(X64 ON)
else ()
set(X86 ON)
set(X64 OFF)
endif ()
find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2)
find_package(SDL2 REQUIRED CONFIG COMPONENTS SDL2main)
find_package (Threads)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
add_definitions (-D_LINUX)
#add_definitions (-DCMAKE_BUILD_TYPE=Debug)
# ../GekkoCore/Gekko.h:196:66: warning: `fastcall` attribute ignored [-Wattributes]
add_compile_options(-Wno-attributes)
add_compile_options(-lstdc++fs)
add_executable (pureikyubu
src/ai.cpp
src/audionull.cpp
src/bootrtc.cpp
src/config.cpp
src/cp.cpp
src/cuisdl.cpp
src/debug.cpp
src/debugui.cpp
src/di.cpp
src/dsp.cpp
src/dspcore.cpp
src/dspdebug.cpp
src/dspdec.cpp
src/dspdisasm.cpp
src/dvd.cpp
src/dvddebug.cpp
src/exi.cpp
src/flipper.cpp
src/flipperdebug.cpp
src/gekko.cpp
src/gekkoc.cpp
src/gekkodebug.cpp
src/gekkodec.cpp
src/gekkodisasm.cpp
src/gfx.cpp
src/jdi.cpp
src/jdiserver.cpp
src/json.cpp
src/main.cpp
src/mem.cpp
src/memcard.cpp
src/os.cpp
src/osdebug.cpp
src/padnull.cpp
src/pe.cpp
src/pi.cpp
src/ras.cpp
src/si.cpp
src/su.cpp
src/sym.cpp
src/tev.cpp
src/tx.cpp
src/uijdi.cpp
# If you don't need UI at all, you can use the simple version instead uisdl
#src/uisimple.cpp
src/uisdl.cpp
src/utils.cpp
src/vi.cpp
src/xf.cpp
src/xfbsdl.cpp
thirdparty/imgui/imgui.cpp
thirdparty/imgui/imgui_demo.cpp
thirdparty/imgui/imgui_draw.cpp
thirdparty/imgui/backends/imgui_impl_sdl2.cpp
thirdparty/imgui/backends/imgui_impl_sdlrenderer2.cpp
thirdparty/imgui/imgui_tables.cpp
thirdparty/imgui/imgui_widgets.cpp
)
target_compile_features(pureikyubu PRIVATE cxx_std_17)
include_directories( thirdparty/imgui ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS} $(GLEW_INCLUDE_DIRS) )
target_link_libraries (pureikyubu ${CMAKE_THREAD_LIBS_INIT} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} fmt SDL2 GLEW)