1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Copy the binary to plugins folder after compiling.

This commit is contained in:
Sandu Liviu Catalin 2020-04-17 17:21:36 +03:00
parent 9e68216136
commit 1242b8a2fc

View File

@ -116,4 +116,6 @@ target_include_directories(SqModule PRIVATE ${CMAKE_CURRENT_LIST_DIR})
# Link to windows libraryes if on windos
if(WIN32 OR MINGW)
target_link_libraries(SqModule wsock32 ws2_32)
endif()
endif()
# Copy module into the plugins folder
add_custom_command(TARGET SqModule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:SqModule> "${PROJECT_SOURCE_DIR}/bin/plugins")