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 "$" "${GEODE_BIN_PATH}/nightly/$" DEPENDS $ VERBATIM TARGET proxy_loader )