mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
30 lines
1.1 KiB
CMake
30 lines
1.1 KiB
CMake
# Copyright (C) 2005-2012 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)
|
|
|
|
message(FATAL_ERROR
|
|
"This project CMakeLists.txt outdated after switch use dep/libmpq and need update use existed Visual Studio projects for build."
|
|
)
|
|
|
|
add_subdirectory (libmpq)
|
|
add_subdirectory (loadlib)
|
|
|
|
include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq)
|
|
include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib)
|
|
|
|
link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq)
|
|
link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/loadlib)
|
|
|
|
add_executable (ad dbcfile.cpp mpq_libmpq.cpp System.cpp)
|
|
|
|
target_link_libraries (ad libmpq)
|
|
target_link_libraries (ad loadlib)
|