diff options
Diffstat (limited to 'contrib/extractor')
-rw-r--r-- | contrib/extractor/CMakeLists.txt | 21 | ||||
-rw-r--r-- | contrib/extractor/README.linux | 12 | ||||
-rw-r--r-- | contrib/extractor/libmpq/CMakeLists.txt | 13 |
3 files changed, 37 insertions, 9 deletions
diff --git a/contrib/extractor/CMakeLists.txt b/contrib/extractor/CMakeLists.txt new file mode 100644 index 00000000000..a00dda1202f --- /dev/null +++ b/contrib/extractor/CMakeLists.txt @@ -0,0 +1,21 @@ +# Copyright (C) 2005-2009 MaNGOS project <http://getmangos.com/> +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +cmake_minimum_required (VERSION 2.6) +project (MANGOS_MAP_EXTRACTOR) + +add_subdirectory (libmpq) + +include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) +link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq) + +add_executable (ad adt.cpp dbcfile.cpp mpq_libmpq.cpp System.cpp) + +target_link_libraries (ad libmpq) diff --git a/contrib/extractor/README.linux b/contrib/extractor/README.linux index e1ebdb8bb2e..1986831e751 100644 --- a/contrib/extractor/README.linux +++ b/contrib/extractor/README.linux @@ -1,13 +1,7 @@ Linux instructions ------------------ -1. Configure and build MaNGOS. -2. cd contrib/map_extractor/libmpq/ +1. install cmake +2. cmake -i 3. make -4. cd .. -5. make -6. run ad - -if there are any problems create folder named .deps in contrib/map_extractor/ -it is old bug from first extractor and i am too lasy to fix it :) - +4. ./ad diff --git a/contrib/extractor/libmpq/CMakeLists.txt b/contrib/extractor/libmpq/CMakeLists.txt new file mode 100644 index 00000000000..c00120c6e48 --- /dev/null +++ b/contrib/extractor/libmpq/CMakeLists.txt @@ -0,0 +1,13 @@ +# Copyright (C) 2005-2009 MaNGOS project <http://getmangos.com/> +# +# This file is free software; as a special exception the author gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +add_library (libmpq common.cpp explode.cpp extract.cpp huffman.cpp mpq.cpp parser.cpp wave.cpp ) +# link libmpq with zlib +target_link_libraries (libmpq z) |