From 0ac8dadecb68cb538fd958323d61b68e6daefbc7 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Thu, 16 Jan 2014 16:31:54 -0700 Subject: [PATCH] Add the stl port link dir (this library auto links when included) --- .../LoginServer/src/CMakeLists.txt | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/engine/server/application/LoginServer/src/CMakeLists.txt b/engine/server/application/LoginServer/src/CMakeLists.txt index d8db4a95..62459701 100644 --- a/engine/server/application/LoginServer/src/CMakeLists.txt +++ b/engine/server/application/LoginServer/src/CMakeLists.txt @@ -116,7 +116,52 @@ include_directories( ${SWG_EXTERNALS_SOURCE_DIR}/3rd/library/udplibrary ) +link_directories(${STLPORT_LIBDIR}) + add_executable(LoginServer ${SHARED_SOURCES} ${PLATFORM_SOURCES} ) + +target_link_libraries(LoginServer + sharedCommandParser + sharedCompression + sharedDatabaseInterface + sharedDatabaseInterface_oci + sharedDebug + sharedFile + sharedFoundation + sharedGame + sharedLog + sharedMath + sharedMemoryManager + sharedMessageDispatch + sharedNetwork + sharedNetworkMessages + sharedRandom + sharedSynchronization + sharedThread + sharedUtility + serverKeyShare + serverNetworkMessages + serverUtility + archive + crypto + fileInterface + localization + localizationArchive + unicode + unicodeArchive + Base + CommonAPI + LoginAPI + MonAPI2 + udplibrary + ${ZLIB_LIBRARY} + ${ORACLE_LIBRARY} +) + +if(WIN32) + set_target_properties (LoginServer PROPERTIES LINK_FLAGS "/NODEFAULTLIB:\"libcmt\"") + target_link_libraries(LoginServer mswsock ws2_32) +endif()