Skip to content

Commit

Permalink
Find the dll's?
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Dec 7, 2024
1 parent 82f308e commit 29ca6a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ if(WIN32)
PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SFML_SOURCE_DIR}/extlibs/bin/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,x64,x86>/openal32.dll $<TARGET_FILE_DIR:8ChocChip>
VERBATIM)

add_custom_command(TARGET 8ChocChip POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${NFD_DLL_PATH} $<TARGET_FILE_DIR:8ChocChip>/nfd.dll
COMMAND ${CMAKE_COMMAND} -E copy
${LIBCONFIG_DLL_PATH} $<TARGET_FILE_DIR:8ChocChip>/libconfig++.dll
)

if (BUILD_SHARED_LIBS)
add_custom_command(TARGET 8ChocChip POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
Expand Down

0 comments on commit 29ca6a3

Please sign in to comment.