Buildsystem: Clean up target link-definitions a bit

--HG--
branch : trunk
This commit is contained in:
click
2010-08-30 22:58:37 +02:00
parent 376958d474
commit 511d571d25
8 changed files with 49 additions and 109 deletions
+7 -17
View File
@@ -84,23 +84,13 @@ endif()
set_target_properties(authserver PROPERTIES LINK_FLAGS "${authserver_LINK_FLAGS}")
if( WIN32 )
target_link_libraries(
authserver
shared
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${OPENSSL_EXTRA_LIBRARIES}
)
else()
target_link_libraries(
authserver
shared
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${OSX_LIBS}
)
endif()
target_link_libraries(authserver
shared
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${OPENSSL_EXTRA_LIBRARIES}
${OSX_LIBS}
)
if( WIN32 )
add_custom_command(TARGET authserver
+3 -9
View File
@@ -78,15 +78,9 @@ add_library(shared STATIC ${shared_STAT_SRCS})
add_dependencies(shared genrev)
if(WIN32)
target_link_libraries(shared
ace
)
else()
target_link_libraries(shared
${ACE_LIBRARY}
)
endif()
target_link_libraries(shared
${ACE_LIBRARY}
)
# Generate precompiled header
if( USE_COREPCH )
+18 -36
View File
@@ -167,42 +167,24 @@ else()
set(SCRIPT_LIB "")
endif()
if( WIN32 )
target_link_libraries(
worldserver
game
shared
zlib
trinitysockets
collision
g3dlib
gsoap
ace
${SCRIPT_LIB}
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${OPENSSL_EXTRA_LIBRARIES}
)
else()
target_link_libraries(
worldserver
game
shared
trinitysockets
collision
g3dlib
gsoap
${JEMALLOC_LIB}
${SCRIPT_LIB}
${READLINE_LIBRARY}
${TERMCAP_LIBRARY}
${ACE_LIBRARY}
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${ZLIB_LIBRARIES}
${OSX_LIBS}
)
endif()
target_link_libraries(worldserver
game
shared
trinitysockets
collision
g3dlib
gsoap
${JEMALLOC_LIB}
${SCRIPT_LIB}
${READLINE_LIBRARY}
${TERMCAP_LIBRARY}
${ACE_LIBRARY}
${MYSQL_LIBRARY}
${OPENSSL_LIBRARIES}
${OPENSSL_EXTRA_LIBRARIES}
${ZLIB_LIBRARIES}
${OSX_LIBS}
)
if( WIN32 )
add_custom_command(TARGET worldserver
+5 -13
View File
@@ -32,19 +32,11 @@ add_executable(mapextractor
${sources}
)
if(WIN32)
target_link_libraries(mapextractor
bzip2
zlib
mpq
)
else()
target_link_libraries(mapextractor
${BZIP2_LIBRARIES}
${ZLIB_LIBRARIES}
mpq
)
endif()
target_link_libraries(mapextractor
${BZIP2_LIBRARIES}
${ZLIB_LIBRARIES}
mpq
)
add_dependencies(mapextractor mpq)
+5 -13
View File
@@ -25,19 +25,11 @@ add_executable(vmap3assembler VMapAssembler.cpp)
add_dependencies(vmap3assembler mpq)
if(WIN32)
target_link_libraries(vmap3assembler
collision
g3dlib
zlib
)
else()
target_link_libraries(vmap3assembler
collision
g3dlib
${ZLIB_LIBRARIES}
)
endif()
target_link_libraries(vmap3assembler
collision
g3dlib
${ZLIB_LIBRARIES}
)
if( UNIX )
install(TARGETS vmap3assembler DESTINATION bin)
+5 -13
View File
@@ -33,19 +33,11 @@ endif()
add_executable(vmap3extractor ${sources})
if(WIN32)
target_link_libraries(vmap3extractor
bzip2
zlib
mpq
)
else()
target_link_libraries(vmap3extractor
${BZIP2_LIBRARIES}
${ZLIB_LIBRARIES}
mpq
)
endif()
target_link_libraries(vmap3extractor
${BZIP2_LIBRARIES}
${ZLIB_LIBRARIES}
mpq
)
add_dependencies(vmap3extractor mpq)