Jump to content

[Fix] CmakeLists.txt file for vmap_assembler build on non-windoze systems


Guest testter

Recommended Posts

Use: CMakeLists.txt file for allowing the build of vmap_assembler on non-windoze platforms (linux,bsd,osx).

Patch against: (not a patch

stupid-ul:mangos imbecile$ git log -1
commit 14f969c72bcd18989e6234f2cfdc99c78d2f712c
Author: VladimirMangos <[email protected]>
Date:   Mon Mar 8 01:07:05 2010 +0300

   [9549] One more typo 

Devs: Imbecile (me by another name)

Code: Code is on paste2.org here

diff --git a/contrib/vmap_assembler/CMakeLists.txt b/contrib/vmap_assembler/CMakeLists.txt
new file mode 100644
index 0000000..bef5e31
--- /dev/null
+++ b/contrib/vmap_assembler/CMakeLists.txt
@@ -0,0 +1,40 @@
+# Copyright (C) 2005-2010 MaNGOS project <http://getmangos.eu/>
+#
+# 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 (VMAP_ASSEMBLER)
+
+if(DIST_ROOT_DIR)
+message(STATUS "Using dist root dir : ${DIST_ROOT_DIR}")
+include_directories (${DIST_ROOT_DIR}/src/shared/vmap) 
+include_directories (${DIST_ROOT_DIR}/dep/include/g3dlite) 
+else(DIST_ROOT_DIR)
+message(SEND_ERROR "** Distributtion's root directory not found. Please specify")
+message(SEND_ERROR "** mangos/trinitycore distrib root directory with -DDIST_ROOT_DIR")
+return()
+endif(DIST_ROOT_DIR)
+
+if(G3D_LIB)
+message(STATUS "Using G3D lib : ${G3D_LIB}")
+else(G3D_LIB)
+message(SEND_ERROR "** G3D lib not found. Please specify with -DG3D_LIB")
+return()
+endif(G3D_LIB)
+
+if(VMAP_LIB)
+message(STATUS "Using G3D lib : ${VMAP_LIB}")
+else(VMAP_LIB)
+message(SEND_ERROR "** VMAP lib not found. Please specify with -DVMAP_LIB")
+return()
+endif(VMAP_LIB)
+
+add_executable (vmap_assembler vmap_assembler.cpp)
+
+target_link_libraries(vmap_assembler ${G3D_LIB} ${VMAP_LIB})

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use