mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 02:06:30 +02:00
on windows, copy zlib dll next to programs that link with shared
This commit is contained in:
parent
ff477b35a8
commit
a4bf169ade
1 changed files with 9 additions and 0 deletions
|
@ -10,3 +10,12 @@ target_link_libraries(${TARGET_NAME} ${ZLIB_LIBRARIES})
|
|||
add_dependency_external_projects(glm)
|
||||
find_package(GLM REQUIRED)
|
||||
target_include_directories(${TARGET_NAME} PUBLIC ${GLM_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
|
||||
|
||||
if (WIN32)
|
||||
# Birarda will fix this when he finds it.
|
||||
get_filename_component(ZLIB_LIB_DIR "${ZLIB_LIBRARIES}" DIRECTORY)
|
||||
get_filename_component(ZLIB_DIR "${ZLIB_LIB_DIR}" DIRECTORY)
|
||||
set(ZLIB_BIN_DIR "${ZLIB_DIR}/bin")
|
||||
file(GLOB ZLIB_DLL_PATHS "${ZLIB_BIN_DIR}/*dll*")
|
||||
add_paths_to_fixup_libs(${ZLIB_DLL_PATHS})
|
||||
endif ()
|
||||
|
|
Loading…
Reference in a new issue