Updated Copyright year to 2013
[getmangos.git] / contrib / vmap_assembler / CMakeLists.txt
bloba821ea9ce8114efaf06d00cf6498fb81b56caa7f
1 # Copyright (C) 2005-2013 MaNGOS project <http://getmangos.com/>
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 cmake_minimum_required (VERSION 2.6)
12 project (MANGOS_VMAP_ASSEMB_IO)
14 set(CMAKE_VERBOSE_MAKEFILE true)
16 # uncomment next line to disable debug mode
17 ADD_DEFINITIONS("-DIOMAP_DEBUG")
18 ADD_DEFINITIONS("-DNO_CORE_FUNCS")
20 ADD_DEFINITIONS("-Wall")
21 ADD_DEFINITIONS("-ggdb")
22 ADD_DEFINITIONS("-O3")
24 include_directories(../../src/shared)
25 include_directories(../../src/game/vmap/)
26 include_directories(../../dep/include/g3dlite/)
27 include_directories(../../dep/ACE_wrappers/)
28 include_directories(../../objdir/dep/ACE_wrappers)
29 include_directories(../../src/framework/)
31 add_library(g3dlite ../../dep/src/g3dlite/AABox.cpp
32         ../../dep/src/g3dlite/Box.cpp
33         ../../dep/src/g3dlite/Crypto.cpp
34         ../../dep/src/g3dlite/format.cpp
35         ../../dep/src/g3dlite/Matrix3.cpp
36         ../../dep/src/g3dlite/Plane.cpp
37         ../../dep/src/g3dlite/System.cpp
38         ../../dep/src/g3dlite/Triangle.cpp
39         ../../dep/src/g3dlite/Vector3.cpp
40         ../../dep/src/g3dlite/Vector4.cpp
41         ../../dep/src/g3dlite/debugAssert.cpp
42         ../../dep/src/g3dlite/fileutils.cpp
43         ../../dep/src/g3dlite/g3dmath.cpp
44         ../../dep/src/g3dlite/g3dfnmatch.cpp
45         ../../dep/src/g3dlite/prompt.cpp
46         ../../dep/src/g3dlite/stringutils.cpp
47         ../../dep/src/g3dlite/Any.cpp
48         ../../dep/src/g3dlite/BinaryFormat.cpp
49         ../../dep/src/g3dlite/BinaryInput.cpp
50         ../../dep/src/g3dlite/BinaryOutput.cpp
51         ../../dep/src/g3dlite/Capsule.cpp
52         ../../dep/src/g3dlite/CollisionDetection.cpp
53         ../../dep/src/g3dlite/CoordinateFrame.cpp
54         ../../dep/src/g3dlite/Cylinder.cpp
55         ../../dep/src/g3dlite/Line.cpp
56         ../../dep/src/g3dlite/LineSegment.cpp
57         ../../dep/src/g3dlite/Log.cpp
58         ../../dep/src/g3dlite/Matrix4.cpp
59         ../../dep/src/g3dlite/MemoryManager.cpp
60         ../../dep/src/g3dlite/Quat.cpp
61         ../../dep/src/g3dlite/Random.cpp
62         ../../dep/src/g3dlite/Ray.cpp
63         ../../dep/src/g3dlite/ReferenceCount.cpp
64         ../../dep/src/g3dlite/Sphere.cpp
65         ../../dep/src/g3dlite/TextInput.cpp
66         ../../dep/src/g3dlite/TextOutput.cpp
67         ../../dep/src/g3dlite/UprightFrame.cpp
68         ../../dep/src/g3dlite/Vector2.cpp
69         )
71 add_library(vmap
72         ../../src/game/vmap/BIH.cpp
73         ../../src/game/vmap/VMapManager2.cpp
74         ../../src/game/vmap/MapTree.cpp
75         ../../src/game/vmap/TileAssembler.cpp
76         ../../src/game/vmap/WorldModel.cpp
77         ../../src/game/vmap/ModelInstance.cpp
78         )
80 target_link_libraries(vmap g3dlite z)
82 add_executable(vmap_assembler vmap_assembler.cpp)
83 target_link_libraries(vmap_assembler vmap)
85 # add_executable(vmap_test coordinate_test.cpp)
86 # target_link_libraries(vmap_test vmap)