mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-11-27 13:20:21 +00:00
39 lines
802 B
CMake
39 lines
802 B
CMake
find_package(glfw3 3.3 REQUIRED)
|
|
|
|
add_precompiled_vulkan_spirv(rpcsx-gpu-shaders
|
|
shaders/fill_red.frag.glsl
|
|
shaders/flip_std.frag.glsl
|
|
shaders/flip_alt.frag.glsl
|
|
shaders/flip.vert.glsl
|
|
shaders/rect_list.geom.glsl
|
|
)
|
|
|
|
add_executable(rpcsx-gpu
|
|
Cache.cpp
|
|
main.cpp
|
|
Device.cpp
|
|
FlipPipeline.cpp
|
|
Pipe.cpp
|
|
Registers.cpp
|
|
Renderer.cpp
|
|
)
|
|
|
|
target_link_libraries(rpcsx-gpu
|
|
PUBLIC
|
|
rpcsx-gpu-shaders
|
|
amdgpu::bridge
|
|
rx
|
|
gcn-shader
|
|
glfw
|
|
amdgpu::tiler::cpu
|
|
amdgpu::tiler::vulkan
|
|
rdna-semantic-spirv
|
|
gnm::vulkan
|
|
gnm
|
|
)
|
|
|
|
install(TARGETS rpcsx-gpu RUNTIME DESTINATION bin)
|
|
set_target_properties(rpcsx-gpu PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
target_base_address(rpcsx-gpu 0x0000060000000000)
|
|
add_subdirectory(lib)
|