diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index a2a54ed1f8..aebb66e712 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -1288,7 +1288,7 @@ function(setup_main_executable target) install(FILES $ DESTINATION ${CMAKE_SOURCE_DIR}/bin) endif() find_program(WINDEPLOYQT_EXE windeployqt HINTS "${QT_BINARY_DIRECTORY}") - install(CODE "execute_process(COMMAND \"${WINDEPLOYQT_EXE}\" \"${CMAKE_SOURCE_DIR}/bin/pcsx2-qt.exe\" --plugindir ${CMAKE_SOURCE_DIR}/bin/QtPlugins --no-compiler-runtime --no-system-d3d-compiler)") + install(CODE "execute_process(COMMAND \"${WINDEPLOYQT_EXE}\" \"${CMAKE_SOURCE_DIR}/bin/$\" --plugindir ${CMAKE_SOURCE_DIR}/bin/QtPlugins --no-compiler-runtime --no-system-d3d-compiler)") install(CODE "file(WRITE \"${CMAKE_SOURCE_DIR}/bin/qt.conf\" \"[Paths]\\nPlugins = ./QtPlugins\")") endif() @@ -1365,6 +1365,10 @@ function(setup_main_executable target) COMMAND bash -c "set +x\; echo 'Elevating to enable networking capability on $...'\; sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' '$'" ) endif() + + if(PCSX2_EXE_NAME) + set_target_properties(${target} PROPERTIES OUTPUT_NAME ${PCSX2_EXE_NAME}) + endif() endfunction() source_groups_from_vcxproj_filters(pcsx2core.vcxproj.filters)