mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Buildsystem: Copy configuration-file over to binaries-directory on MSVC after successfully compiling authserver/worldserver).
(Default .dist extensions for the filenames are used to not overwrite possible changes from earlier runs or compilations). --HG-- branch : trunk
This commit is contained in:
@@ -87,6 +87,13 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if( WIN32 )
|
||||
add_custom_command(TARGET authserver
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/authserver.conf.dist ${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/
|
||||
)
|
||||
endif()
|
||||
|
||||
if( UNIX )
|
||||
install(TARGETS authserver DESTINATION bin)
|
||||
install(FILES authserver.conf.dist DESTINATION etc)
|
||||
|
||||
@@ -191,6 +191,13 @@ else()
|
||||
)
|
||||
endif()
|
||||
|
||||
if( WIN32 )
|
||||
add_custom_command(TARGET worldserver
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/worldserver.conf.dist ${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/
|
||||
)
|
||||
endif()
|
||||
|
||||
if( UNIX )
|
||||
install(TARGETS worldserver DESTINATION bin)
|
||||
install(FILES worldserver.conf.dist DESTINATION etc)
|
||||
|
||||
Reference in New Issue
Block a user