diff options
| author | click <none@none> | 2010-06-21 07:17:26 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-06-21 07:17:26 +0200 |
| commit | 1c96f52568d680e320b58874df31caabae536f4c (patch) | |
| tree | 7808317394d96433b6375237a96b186e0b32b1c4 /src/tools/map_extractor | |
| parent | 1ff96c9846e537ec0a1d886da241eed300af7aae (diff) | |
Add more CMake-related support for building g3dlib, zlib, bzip2, ace on Windows
--HG--
branch : trunk
Diffstat (limited to 'src/tools/map_extractor')
| -rw-r--r-- | src/tools/map_extractor/CMakeLists.txt | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/tools/map_extractor/CMakeLists.txt b/src/tools/map_extractor/CMakeLists.txt index 8e7fa0df891..ce5e54ac4f0 100644 --- a/src/tools/map_extractor/CMakeLists.txt +++ b/src/tools/map_extractor/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (C) 2005-2009 MaNGOS project <http://getmangos.com/> -# Copyright (C) 2005-2010 Trinity <http://www.trinitycore.org/> +# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/> # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -28,7 +28,15 @@ add_library(loadlib ${loadlib_sources} ) -target_link_libraries(loadlib zlib) +if(NOT UNIX) + target_link_libraries(loadlib + zlib + ) +else() + target_link_libraries(loadlib + ${ZLIB_LIBRARIES} + ) +endif() add_library(libmpq ${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/common.c @@ -43,10 +51,18 @@ add_executable(mapextractor ${sources} ) -target_link_libraries(mapextractor - libmpq - loadlib - bzip2 -) +if(WIN32) + target_link_libraries(mapextractor + libmpq + loadlib + bzip2 + ) +else() + target_link_libraries(mapextractor + libmpq + loadlib + ${BZIP2_LIBRARIES} + ) +endif() install(TARGETS mapextractor DESTINATION bin) |
