geode/loader/launcher/windows/CMakeLists.txt
2022-09-03 21:52:59 +03:00

15 lines
443 B
CMake

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
)