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:
click
2010-08-09 20:18:31 +02:00
parent 70fc93da7b
commit 8c49f2bc0d
2 changed files with 14 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)