From 5fd66a9685ae87541a0dcb6a3bf5ad3ef1eff352 Mon Sep 17 00:00:00 2001 From: HappyTanuki Date: Wed, 23 Apr 2025 05:10:52 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=20dll=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/CMakeLists.txt | 17 ++++++++++++++++- Server/CMakeLists.txt | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Client/CMakeLists.txt b/Client/CMakeLists.txt index ba01770..6527106 100644 --- a/Client/CMakeLists.txt +++ b/Client/CMakeLists.txt @@ -54,4 +54,19 @@ target_include_directories(${PROJECT_NAME} PUBLIC ) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) -target_precompile_headers(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../include/precomp.hpp") \ No newline at end of file +target_precompile_headers(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../include/precomp.hpp") + +if(WIN32) + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "$" + "$" + COMMENT "Copying spdlog DLL to output directory" + ) + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "$" + "$" + COMMENT "Copying jsoncpp DLL to output directory" + ) +endif() \ No newline at end of file diff --git a/Server/CMakeLists.txt b/Server/CMakeLists.txt index 1f0e24b..4bc820c 100644 --- a/Server/CMakeLists.txt +++ b/Server/CMakeLists.txt @@ -55,4 +55,19 @@ target_include_directories(${PROJECT_NAME} PUBLIC ) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) -target_precompile_headers(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../include/precomp.hpp") \ No newline at end of file +target_precompile_headers(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../include/precomp.hpp") + +if(WIN32) + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "$" + "$" + COMMENT "Copying spdlog DLL to output directory" + ) + add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + "$" + "$" + COMMENT "Copying jsoncpp DLL to output directory" + ) +endif() \ No newline at end of file