rexglue-skate3/src/rexglue/CMakeLists.txt
2026-05-18 22:41:13 +01:00

41 lines
1 KiB
CMake

# ReXGlue
add_executable(rexglue
main.cpp
ui/ui.cpp
ui/progress.cpp
commands/codegen_command.cpp
commands/init_command.cpp
commands/test_recompiler.cpp
commands/migration_scan.cpp
commands/legacy_config.cpp
)
target_include_directories(rexglue
PRIVATE
${REXGLUE_ROOT}/src
${REXGLUE_ROOT}/thirdparty/disasm
${REXGLUE_ROOT}/thirdparty/cli11/include
)
target_link_libraries(rexglue
PRIVATE
rexcodegen
)
# Delay-load FidelityFX DLLs so rexglue can run in tool mode without them.
if(WIN32)
if(TARGET amd_fidelityfx_vk)
target_link_options(rexglue PRIVATE
"LINKER:/DELAYLOAD:$<TARGET_FILE_NAME:amd_fidelityfx_vk>")
endif()
if(TARGET amd_fidelityfx_dx12)
target_link_options(rexglue PRIVATE
"LINKER:/DELAYLOAD:$<TARGET_FILE_NAME:amd_fidelityfx_dx12>")
endif()
if(TARGET amd_fidelityfx_vk OR TARGET amd_fidelityfx_dx12)
target_link_libraries(rexglue PRIVATE delayimp)
endif()
endif()
add_executable(rex::rexglue ALIAS rexglue)