mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-08-04 07:01:46 +02:00
Copy the binary to plugins folder after compiling.
This commit is contained in:
@@ -116,4 +116,6 @@ target_include_directories(SqModule PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
|||||||
# Link to windows libraryes if on windos
|
# Link to windows libraryes if on windos
|
||||||
if(WIN32 OR MINGW)
|
if(WIN32 OR MINGW)
|
||||||
target_link_libraries(SqModule wsock32 ws2_32)
|
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")
|
||||||
|
Reference in New Issue
Block a user