Skip to content

Commit

Permalink
Cmake now working with StormLib
Browse files Browse the repository at this point in the history
  • Loading branch information
earlyaugust committed Apr 13, 2013
1 parent 0cff53f commit de3b027
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions contrib/vmap_extractor/vmapextract/CMakeLists.txt
Expand Up @@ -9,8 +9,17 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cmake_minimum_required (VERSION 2.6)
project (MANGOS_IOMAP_EXTRACTOR)
project (EXTRACT)

# All .cpp files are part of the executable...
file(GLOB src_files *.cpp)
add_executable(vmapextractor ${src_files})

# Needed for the StormLIb headers
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../../../dep/StormLib/src)

# Make sure the linker can find StormLib.
link_directories (${EXTRACT_SOURCE_DIR}/StormLib)

target_link_libraries(vmapextractor storm)

LINK_DIRECTORIES( ${LINK_DIRECTORIES} ../../../dep/libmpq/libmpq/.libs/ )
add_executable(vmapextractor adtfile.cpp dbcfile.cpp model.cpp mpq_libmpq.cpp vmapexport.cpp wdtfile.cpp wmo.cpp)
target_link_libraries(vmapextractor libmpq.a bz2 z)

0 comments on commit de3b027

Please sign in to comment.