Buildsystem/Windows: Use CMAKE_INSTALL_PREFIX as result-dir for output (Thanks to Paradox)

(Suggested change for genrevisions default path retained to avoid breaking earlier builds, and it's not really a "server binary")
Fixes issue 3366

--HG--
branch : trunk
This commit is contained in:
click
2010-08-10 22:40:34 +02:00
parent fc45c6db07
commit 29e152f42b
4 changed files with 55 additions and 38 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ 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)/
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/authserver.conf.dist ${CMAKE_INSTALL_PREFIX}/$(ConfigurationName)/
)
endif()
+1 -1
View File
@@ -194,7 +194,7 @@ 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)/
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/worldserver.conf.dist ${CMAKE_INSTALL_PREFIX}/$(ConfigurationName)/
)
endif()