test fix dll problem for windows

This commit is contained in:
floralrainfall 2023-07-10 14:34:04 -04:00
parent 9d005f2a18
commit 70f5033981
3 changed files with 15 additions and 0 deletions

View File

@ -13,6 +13,11 @@ qt_add_executable(Player
Source/MainWindow.cpp
)
add_custom_command(TARGET Player POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Player> $<TARGET_RUNTIME_DLLS:Player>
COMMAND_EXPAND_LISTS
)
target_include_directories(Player PRIVATE Header)
target_link_libraries(Player PRIVATE Common Engine)

View File

@ -8,5 +8,10 @@ add_executable(Server
Source/main.cpp
)
add_custom_command(TARGET Server POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Server> $<TARGET_RUNTIME_DLLS:Server>
COMMAND_EXPAND_LISTS
)
target_include_directories(Server PRIVATE Header)
target_link_libraries(Server PRIVATE Engine)

View File

@ -13,6 +13,11 @@ qt_add_executable(Studio
Source/MainWindow.cpp
)
add_custom_command(TARGET Studio POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy -t $<TARGET_FILE_DIR:Studio> $<TARGET_RUNTIME_DLLS:Studio>
COMMAND_EXPAND_LISTS
)
target_include_directories(Studio PRIVATE Header)
target_link_libraries(Studio PRIVATE Common Engine)