mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update CMakeLists.txt
Copy the dpp dll to the binary folder.
This commit is contained in:
parent
2f277c4486
commit
a8d1d85ed2
@ -246,7 +246,12 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
# Copy module into the plug-ins folder
|
# Copy module into the plug-ins folder
|
||||||
add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:SqModule> "${PROJECT_SOURCE_DIR}/bin/plugins")
|
add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:SqModule> "${PROJECT_SOURCE_DIR}/bin/plugins")
|
||||||
|
# Copy DPP into the bin folder
|
||||||
|
if (ENABLE_DISCORD)
|
||||||
|
if (WIN32 OR MINGW)
|
||||||
|
add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:dpp> "${PROJECT_SOURCE_DIR}/bin")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
# Copy several dependent DLLs on windows to make distribution easier (used mainly by people that distribute builds)
|
# Copy several dependent DLLs on windows to make distribution easier (used mainly by people that distribute builds)
|
||||||
if(WIN32 AND MINGW AND COPY_DEPENDENCIES)
|
if(WIN32 AND MINGW AND COPY_DEPENDENCIES)
|
||||||
get_filename_component(MINGW_BIN_PATH ${CMAKE_C_COMPILER} DIRECTORY REALPATH)
|
get_filename_component(MINGW_BIN_PATH ${CMAKE_C_COMPILER} DIRECTORY REALPATH)
|
||||||
|
Loading…
Reference in New Issue
Block a user