2022-08-30 13:22:51 -04:00
|
|
|
project(PS2)
|
|
|
|
|
|
|
|
set(CMAKE_MINIMUM_REQUIRED_VERSION 3.16.3)
|
|
|
|
|
2022-12-31 08:39:22 -05:00
|
|
|
set(CXX_STANDARD c++23)
|
|
|
|
|
2022-08-30 13:22:51 -04:00
|
|
|
set(SOURCES src/main.cpp
|
|
|
|
src/app/Application.cpp
|
2023-01-02 20:31:39 -05:00
|
|
|
src/emu/memory/Bus.cpp
|
2023-01-02 23:15:04 -05:00
|
|
|
src/emu/System.cpp
|
2023-01-03 03:48:00 -05:00
|
|
|
src/emu/cpu/ee/EmotionEngine.cpp
|
2023-11-01 18:42:46 -04:00
|
|
|
src/emu/cpu/ee/EEJit.cpp
|
|
|
|
src/emu/cpu/ee/x64/EEJitx64.cpp
|
|
|
|
src/emu/cpu/ee/x64/RegAllocator.cpp
|
2023-01-17 13:10:46 -05:00
|
|
|
src/emu/cpu/ee/dmac.cpp
|
2023-01-17 15:50:20 -05:00
|
|
|
src/emu/cpu/ee/vu.cpp
|
2023-01-16 06:26:59 -05:00
|
|
|
src/emu/cpu/ee/vif.cpp
|
2023-01-20 05:49:27 -05:00
|
|
|
src/emu/cpu/iop/cpu.cpp
|
|
|
|
src/emu/cpu/iop/opcodes.cpp
|
|
|
|
src/emu/cpu/iop/dma.cpp
|
2023-01-15 12:39:52 -05:00
|
|
|
src/emu/sched/scheduler.cpp
|
|
|
|
src/emu/gpu/gif.cpp
|
2023-01-20 05:49:27 -05:00
|
|
|
src/emu/gpu/gs.cpp
|
|
|
|
src/emu/dev/sif.cpp
|
2023-06-10 19:12:46 -04:00
|
|
|
src/emu/dev/cdvd.cpp
|
2023-11-01 18:42:46 -04:00
|
|
|
src/emu/dev/sio2.cpp)
|
2022-08-30 13:22:51 -04:00
|
|
|
|
2022-09-27 19:02:11 -04:00
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
2022-08-30 13:22:51 -04:00
|
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
2023-11-01 18:42:46 -04:00
|
|
|
add_definitions(-DEE_JIT=64)
|
|
|
|
|
2022-08-30 13:22:51 -04:00
|
|
|
add_executable(ps2 ${SOURCES})
|
2022-09-13 23:34:56 -04:00
|
|
|
set(TARGET_NAME ps2)
|
|
|
|
|
2023-06-10 19:12:46 -04:00
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
include_directories(ps2 ${SDL2_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
target_link_libraries(ps2 ${SDL2_LIBRARIES})
|
|
|
|
|
2022-09-13 23:34:56 -04:00
|
|
|
if(MSVC)
|
|
|
|
target_compile_options(${TARGET_NAME} PRIVATE /W4 /WX)
|
|
|
|
else()
|
2023-11-01 18:42:46 -04:00
|
|
|
target_compile_options(${TARGET_NAME} PRIVATE -pg -O3 -mincoming-stack-boundary=3)
|
2023-01-05 05:49:15 -05:00
|
|
|
target_link_options(${TARGET_NAME} PRIVATE -pg)
|
2022-09-13 23:34:56 -04:00
|
|
|
endif()
|
2022-08-30 13:22:51 -04:00
|
|
|
|
2022-09-05 14:10:45 -04:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
|
2022-12-31 08:39:22 -05:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|