geode/loader/launcher/windows/CMakeLists.txt

16 lines
443 B
Text
Raw Normal View History

2022-07-30 12:24:03 -04:00
cmake_minimum_required(VERSION 3.3.0)
add_library(proxy_loader SHARED proxyLoader.c)
set_target_properties(proxy_loader PROPERTIES
OUTPUT_NAME "XInput9_1_0"
RUNTIME_OUTPUT_DIRECTORY "${GEODE_BIN_PATH}"
)
add_custom_command(
COMMAND
${CMAKE_COMMAND} -E rename "$<TARGET_FILE:proxy_loader>" "${GEODE_BIN_PATH}/nightly/$<TARGET_FILE_NAME:proxy_loader>"
DEPENDS $<TARGET_FILE:proxy_loader>
VERBATIM
TARGET proxy_loader
)