From f51f6e00c4de23859c4e1ec5bfb468d847ff8254 Mon Sep 17 00:00:00 2001 From: j883376 Date: Wed, 15 May 2013 17:04:08 -0400 Subject: [PATCH] Add install paths to CMakeLists --- eqlaunch/CMakeLists.txt | 2 ++ loginserver/CMakeLists.txt | 2 ++ queryserv/CMakeLists.txt | 2 ++ shared_memory/CMakeLists.txt | 2 ++ ucs/CMakeLists.txt | 2 ++ world/CMakeLists.txt | 2 ++ zone/CMakeLists.txt | 2 ++ 7 files changed, 14 insertions(+) diff --git a/eqlaunch/CMakeLists.txt b/eqlaunch/CMakeLists.txt index 6097279d2..097662b03 100644 --- a/eqlaunch/CMakeLists.txt +++ b/eqlaunch/CMakeLists.txt @@ -13,6 +13,8 @@ SET(eqlaunch_headers ADD_EXECUTABLE(eqlaunch ${eqlaunch_sources} ${eqlaunch_headers}) +INSTALL(TARGETS eqlaunch RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + TARGET_LINK_LIBRARIES(eqlaunch Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY}) IF(MSVC) diff --git a/loginserver/CMakeLists.txt b/loginserver/CMakeLists.txt index fd13b8041..b9a3e08c7 100644 --- a/loginserver/CMakeLists.txt +++ b/loginserver/CMakeLists.txt @@ -40,6 +40,8 @@ ENDIF(UNIX) ADD_EXECUTABLE(loginserver ${eqlogin_sources} ${eqlogin_headers}) +INSTALL(TARGETS loginserver RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + TARGET_LINK_LIBRARIES(loginserver Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE}) IF(MSVC) diff --git a/queryserv/CMakeLists.txt b/queryserv/CMakeLists.txt index dca29b2cf..095f397e4 100644 --- a/queryserv/CMakeLists.txt +++ b/queryserv/CMakeLists.txt @@ -17,6 +17,8 @@ SET(qserv_headers ADD_EXECUTABLE(queryserv ${qserv_sources} ${qserv_headers}) +INSTALL(TARGETS queryserv RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + ADD_DEFINITIONS(-DQSERV) TARGET_LINK_LIBRARIES(queryserv Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY}) diff --git a/shared_memory/CMakeLists.txt b/shared_memory/CMakeLists.txt index 2c665443c..01f79ec06 100644 --- a/shared_memory/CMakeLists.txt +++ b/shared_memory/CMakeLists.txt @@ -19,6 +19,8 @@ SET(shared_memory_headers ADD_EXECUTABLE(shared_memory ${shared_memory_sources} ${shared_memory_headers}) +INSTALL(TARGETS shared_memory RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + TARGET_LINK_LIBRARIES(shared_memory Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY}) IF(MSVC) diff --git a/ucs/CMakeLists.txt b/ucs/CMakeLists.txt index 30af23655..d3fb50274 100644 --- a/ucs/CMakeLists.txt +++ b/ucs/CMakeLists.txt @@ -19,6 +19,8 @@ SET(ucs_headers ADD_EXECUTABLE(ucs ${ucs_sources} ${ucs_headers}) +INSTALL(TARGETS ucs RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + ADD_DEFINITIONS(-DUCS) TARGET_LINK_LIBRARIES(ucs Common debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY}) diff --git a/world/CMakeLists.txt b/world/CMakeLists.txt index 1586ca49c..2e299d413 100644 --- a/world/CMakeLists.txt +++ b/world/CMakeLists.txt @@ -65,6 +65,8 @@ SET(world_headers ADD_EXECUTABLE(world ${world_sources} ${world_headers}) +INSTALL(TARGETS world RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + ADD_DEFINITIONS(-DWORLD) TARGET_LINK_LIBRARIES(world Common ${PERL_LIBRARY} debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY}) diff --git a/zone/CMakeLists.txt b/zone/CMakeLists.txt index 2e459e33e..ccba19144 100644 --- a/zone/CMakeLists.txt +++ b/zone/CMakeLists.txt @@ -154,6 +154,8 @@ SET(zone_headers ADD_EXECUTABLE(zone ${zone_sources} ${zone_headers}) +INSTALL(TARGETS zone RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) + ADD_DEFINITIONS(-DZONE) TARGET_LINK_LIBRARIES(zone Common ${PERL_LIBRARY} debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE} ${ZLIB_LIBRARY})