Created
June 10, 2010 16:28
-
-
Save SkirnirMaNGOS/433247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ########## Project setup ########## | |
PROJECT(MMAP) | |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) | |
# ######### General setup ########## | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/Debug) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../dep/include/g3dlite) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../dep/include/zlib) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/framework) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/framework/Utilities) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/shared) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/shared/vmap) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/shared/pathfinding) | |
INCLUDE_DIRECTORIES(${MMAP_SOURCE_DIR}/../../../src/shared/pathfinding/Recast) | |
ADD_DEFINITIONS("-DMMAP_GENERATOR") | |
ADD_DEFINITIONS("-Wall") | |
ADD_DEFINITIONS("-ggdb") | |
ADD_DEFINITIONS("-O3") | |
SET(libg3dlite_SRCS | |
../../../dep/src/g3dlite/AABox.cpp | |
../../../dep/src/g3dlite/Box.cpp | |
../../../dep/src/g3dlite/Crypto.cpp | |
../../../dep/src/g3dlite/format.cpp | |
../../../dep/src/g3dlite/Matrix3.cpp | |
../../../dep/src/g3dlite/Plane.cpp | |
../../../dep/src/g3dlite/RegistryUtil.cpp | |
../../../dep/src/g3dlite/System.cpp | |
../../../dep/src/g3dlite/Triangle.cpp | |
../../../dep/src/g3dlite/Vector3.cpp | |
../../../dep/src/g3dlite/Vector4.cpp | |
../../../dep/src/g3dlite/debugAssert.cpp | |
../../../dep/src/g3dlite/fileutils.cpp | |
../../../dep/src/g3dlite/g3dmath.cpp | |
../../../dep/src/g3dlite/g3dfnmatch.cpp | |
../../../dep/src/g3dlite/prompt.cpp | |
../../../dep/src/g3dlite/stringutils.cpp | |
../../../dep/src/g3dlite/Any.cpp | |
../../../dep/src/g3dlite/BinaryFormat.cpp | |
../../../dep/src/g3dlite/BinaryInput.cpp | |
../../../dep/src/g3dlite/BinaryOutput.cpp | |
../../../dep/src/g3dlite/Capsule.cpp | |
../../../dep/src/g3dlite/CollisionDetection.cpp | |
../../../dep/src/g3dlite/CoordinateFrame.cpp | |
../../../dep/src/g3dlite/Cylinder.cpp | |
../../../dep/src/g3dlite/Line.cpp | |
../../../dep/src/g3dlite/LineSegment.cpp | |
../../../dep/src/g3dlite/Log.cpp | |
../../../dep/src/g3dlite/Matrix4.cpp | |
../../../dep/src/g3dlite/MemoryManager.cpp | |
../../../dep/src/g3dlite/Quat.cpp | |
../../../dep/src/g3dlite/Random.cpp | |
../../../dep/src/g3dlite/Ray.cpp | |
../../../dep/src/g3dlite/ReferenceCount.cpp | |
../../../dep/src/g3dlite/Sphere.cpp | |
../../../dep/src/g3dlite/TextInput.cpp | |
../../../dep/src/g3dlite/TextOutput.cpp | |
../../../dep/src/g3dlite/UprightFrame.cpp | |
../../../dep/src/g3dlite/Vector2.cpp | |
../../../dep/src/g3dlite/Vector3.cpp | |
) | |
SET(libmangosrecast_SRCS | |
../../../src/shared/pathfinding/Recast/RecastArea.cpp | |
../../../src/shared/pathfinding/Recast/RecastContour.cpp | |
../../../src/shared/pathfinding/Recast/Recast.cpp | |
../../../src/shared/pathfinding/Recast/RecastFilter.cpp | |
../../../src/shared/pathfinding/Recast/RecastLog.cpp | |
../../../src/shared/pathfinding/Recast/RecastMesh.cpp | |
../../../src/shared/pathfinding/Recast/RecastMeshDetail.cpp | |
../../../src/shared/pathfinding/Recast/RecastRasterization.cpp | |
../../../src/shared/pathfinding/Recast/RecastRegion.cpp | |
../../../src/shared/pathfinding/Recast/RecastTimer.cpp | |
../../../src/shared/pathfinding/DebugUtils/RecastDebugDraw.cpp | |
../../../src/shared/pathfinding/DebugUtils/RecastDump.cpp | |
) | |
SET(libmangosdetour_SRCS | |
../../../src/shared/pathfinding/Detour/DetourCommon.cpp | |
../../../src/shared/pathfinding/Detour/DetourNavMeshBuilder.cpp | |
../../../src/shared/pathfinding/Detour/DetourNavMesh.cpp | |
../../../src/shared/pathfinding/Detour/DetourNode.cpp | |
) | |
SET(libdebugutils_SRCS | |
../../../src/shared/pathfinding/DebugUtils/DebugDraw.cpp | |
../../../src/shared/pathfinding/DebugUtils/RecastDebugDraw.cpp | |
../../../src/shared/pathfinding/DebugUtils/RecastDump.cpp | |
../../../src/shared/pathfinding/DebugUtils/DetourDebugDraw.cpp | |
) | |
SET(libmangosvmaps_SRCS | |
../../../src/shared/vmap/BIH.cpp | |
../../../src/shared/vmap/MapTree.cpp | |
../../../src/shared/vmap/ModelInstance.cpp | |
../../../src/shared/vmap/TileAssembler.cpp | |
../../../src/shared/vmap/VMapFactory.cpp | |
../../../src/shared/vmap/VMapManager2.cpp | |
../../../src/shared/vmap/WorldModel.cpp | |
) | |
SET(libzlib_SRCS | |
../../../dep/src/zlib/adler32.c | |
../../../dep/src/zlib/compress.c | |
../../../dep/src/zlib/crc32.c | |
../../../dep/src/zlib/deflate.c | |
../../../dep/src/zlib/example.c | |
../../../dep/src/zlib/gzio.c | |
../../../dep/src/zlib/infback.c | |
../../../dep/src/zlib/inffast.c | |
../../../dep/src/zlib/inflate.c | |
../../../dep/src/zlib/inftrees.c | |
../../../dep/src/zlib/trees.c | |
../../../dep/src/zlib/uncompr.c | |
../../../dep/src/zlib/zutil.c | |
) | |
ADD_LIBRARY(libg3dlite SHARED ${libg3dlite_SRCS}) | |
ADD_LIBRARY(libmangosrecast SHARED ${libmangosrecast_SRCS}) | |
ADD_LIBRARY(libmangosdetour SHARED ${libmangosdetour_SRCS}) | |
ADD_LIBRARY(libmangosvmaps SHARED ${libmangosvmaps_SRCS}) | |
ADD_LIBRARY(libdebugutils SHARED ${libdebugutils_SRCS}) | |
ADD_LIBRARY(libzlib SHARED ${libzlib_SRCS}) | |
#add_subdirectory(g3dlite) | |
#LINK_DIRECTORIES( ${LINK_DIRECTORIES}/) | |
# ########## src executable ########## | |
# Sources: | |
SET(MMAP_executable_SRCS | |
MapBuilder.cpp | |
MeshLoaderObj.cpp | |
ChunkyTriMesh.cpp | |
generator.cpp | |
TileBuilder.cpp | |
InputGeom.cpp | |
VMapExtensions.cpp | |
) | |
# Headers: | |
SET(MMAP_executable_HDRS | |
TileBuilder.h | |
MapBuilder.h | |
MangosMap.h | |
MeshLoaderObj.h | |
ChunkyTriMesh.h | |
MMapCommon.h | |
InputGeom.h | |
) | |
# actual target: | |
ADD_EXECUTABLE(generator ${MMAP_executable_SRCS}) | |
TARGET_LINK_LIBRARIES(generator libg3dlite libmangosrecast libmangosdetour libmangosvmaps libdebugutils libzlib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment