-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (39 loc) · 1.22 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
project(PS2)
set(CMAKE_MINIMUM_REQUIRED_VERSION 3.16.3)
set(CXX_STANDARD c++23)
set(SOURCES src/main.cpp
src/app/Application.cpp
src/emu/memory/Bus.cpp
src/emu/System.cpp
src/emu/cpu/ee/EmotionEngine.cpp
src/emu/cpu/ee/EEJit.cpp
src/emu/cpu/ee/x64/EEJitx64.cpp
src/emu/cpu/ee/x64/RegAllocator.cpp
src/emu/cpu/ee/dmac.cpp
src/emu/cpu/ee/vu.cpp
src/emu/cpu/ee/vif.cpp
src/emu/cpu/iop/cpu.cpp
src/emu/cpu/iop/opcodes.cpp
src/emu/cpu/iop/dma.cpp
src/emu/sched/scheduler.cpp
src/emu/gpu/gif.cpp
src/emu/gpu/gs.cpp
src/emu/dev/sif.cpp
src/emu/dev/cdvd.cpp
src/emu/dev/sio2.cpp)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_definitions(-DEE_JIT=64)
add_executable(ps2 ${SOURCES})
set(TARGET_NAME ps2)
find_package(SDL2 REQUIRED)
include_directories(ps2 ${SDL2_INCLUDE_DIRS})
target_link_libraries(ps2 ${SDL2_LIBRARIES})
if(MSVC)
target_compile_options(${TARGET_NAME} PRIVATE /W4 /WX)
else()
target_compile_options(${TARGET_NAME} PRIVATE -pg -O3 -mincoming-stack-boundary=3)
target_link_options(${TARGET_NAME} PRIVATE -pg)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})