mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/CMAKE): Include mmaps-config. yaml with mmaps_generator for Windows (#24083)
Co-authored-by: FlyingArowana <TheSCREWEDSoftware@users.noreply.github.com>
This commit is contained in:
@@ -173,6 +173,22 @@ foreach(TOOL_NAME ${TOOLS_BUILD_LIST})
|
||||
endif()
|
||||
|
||||
if (${TOOL_PROJECT_NAME} STREQUAL "mmaps_generator")
|
||||
install(FILES ${SOURCE_TOOL_PATH}/mmaps-config.yaml DESTINATION bin)
|
||||
if(WIN32)
|
||||
if("${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild")
|
||||
add_custom_command(TARGET ${TOOL_PROJECT_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SOURCE_TOOL_PATH}/mmaps-config.yaml" "${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/mmaps-config.yaml")
|
||||
elseif(MINGW)
|
||||
add_custom_command(TARGET ${TOOL_PROJECT_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SOURCE_TOOL_PATH}/mmaps-config.yaml" "${CMAKE_BINARY_DIR}/bin/mmaps-config.yaml")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (UNIX)
|
||||
install(FILES ${SOURCE_TOOL_PATH}/mmaps-config.yaml DESTINATION bin)
|
||||
elseif (WIN32)
|
||||
install(FILES ${SOURCE_TOOL_PATH}/mmaps-config.yaml DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user