mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-10-04 11:24:58 -04:00
8f747334d6
fix: patching NOP things that code gen already know how to handle feat: added a bug on JAL/J/JAR code gen feat: enhanced tom file fix: fix memory layout for ps2 macros feat: added a lot of not working garbabe to runtime (fix later) feat: some code organization feat: added new tests feat: update readme
35 lines
733 B
CMake
35 lines
733 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(PS2Analyzer VERSION 0.1.0 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(PS2ANALYZER_LIB_SOURCES
|
|
src/elf_analyzer.cpp
|
|
)
|
|
|
|
add_library(ps2_analyzer_lib STATIC ${PS2ANALYZER_LIB_SOURCES})
|
|
|
|
target_include_directories(ps2_analyzer_lib PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${CMAKE_SOURCE_DIR}/ps2xRecomp/include
|
|
)
|
|
|
|
target_link_libraries(ps2_analyzer_lib PUBLIC
|
|
ps2_recomp_lib
|
|
)
|
|
|
|
add_executable(ps2_analyzer
|
|
src/analyzer_main.cpp
|
|
)
|
|
|
|
target_link_libraries(ps2_analyzer PRIVATE
|
|
ps2_analyzer_lib
|
|
)
|
|
|
|
install(TARGETS ps2_analyzer ps2_analyzer_lib
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|