mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-28 14:23:18 +00:00
initial disasm class using zydis
This commit is contained in:
parent
b124bac0f7
commit
dfc234f363
4 changed files with 60 additions and 2 deletions
11
third-party/CMakeLists.txt
vendored
11
third-party/CMakeLists.txt
vendored
|
@ -19,11 +19,20 @@ target_include_directories(stb INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/stb")
|
|||
set(SDL3_DIR ${CMAKE_CURRENT_SOURCE_DIR}/SDL)
|
||||
add_subdirectory(${SDL3_DIR})
|
||||
|
||||
#================ Zydis ========================
|
||||
# Register Zydis dependency.
|
||||
# Disable build of tools and examples.
|
||||
option(ZYDIS_BUILD_TOOLS "" OFF)
|
||||
option(ZYDIS_BUILD_EXAMPLES "" OFF)
|
||||
set(zydis_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zydis)
|
||||
add_subdirectory(${zydis_DIR})
|
||||
|
||||
#=================== IMGUI ===================
|
||||
|
||||
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
|
||||
add_library(IMGUI STATIC)
|
||||
|
||||
|
||||
target_sources( IMGUI
|
||||
PRIVATE
|
||||
${IMGUI_DIR}/imgui_demo.cpp
|
||||
|
@ -47,6 +56,6 @@ find_package(OpenGL REQUIRED)
|
|||
target_link_libraries(IMGUI PUBLIC ${OPENGL_LIBRARIES})
|
||||
|
||||
|
||||
target_link_libraries(IMGUI PUBLIC SDL3-shared ${CMAKE_DL_LIBS})
|
||||
target_link_libraries(IMGUI PUBLIC SDL3-shared ${CMAKE_DL_LIBS} Zydis)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue