summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-19 21:50:07 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-19 21:50:07 +0100
commit2aa28ad6f453f65bdbf682a62ffae26fcecaa437 (patch)
tree025487eb90ab35203786c5e5caa351904b9a1e13
parentSwitched EnchantmentSerilizer to namespace (diff)
downloadcuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar.gz
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar.bz2
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar.lz
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar.xz
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.tar.zst
cuberite-2aa28ad6f453f65bdbf682a62ffae26fcecaa437.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt4
-rw-r--r--Tools/GeneratorPerformanceTest/CMakeLists.txt12
-rw-r--r--Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp7
3 files changed, 23 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4ddd34db3..14db055ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,5 +203,9 @@ if (NOT MSVC)
string(REPLACE "-w" "" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
endif()
+if(${BUILD_TOOLS})
+add_subdirectory(Tools/GeneratorPerformanceTest/)
+endif()
+
add_subdirectory (src)
diff --git a/Tools/GeneratorPerformanceTest/CMakeLists.txt b/Tools/GeneratorPerformanceTest/CMakeLists.txt
new file mode 100644
index 000000000..8adc88882
--- /dev/null
+++ b/Tools/GeneratorPerformanceTest/CMakeLists.txt
@@ -0,0 +1,12 @@
+
+cmake_minimum_required(VERSION 2.8)
+project(GeneratorPerformanceTest)
+
+include_directories(../../src/Generating)
+include_directories(../../src)
+include_directories(../../lib)
+
+add_executable(GeneratorPerformanceTest GeneratorPerformanceTest.cpp ../../src/StringUtils ../../src/MCLogger ../../src/Log ../../src/BlockID ../../src/Noise ../../src/Enchantments ../../src/BlockArea)
+
+target_link_libraries(GeneratorPerformanceTest Generating)
+
diff --git a/Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp b/Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp
new file mode 100644
index 000000000..75d18149f
--- /dev/null
+++ b/Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp
@@ -0,0 +1,7 @@
+
+#include "Globals.h"
+#include "ChunkGenerator.h"
+
+int main(int argc, char * argv[]) {
+ cChunkGenerator Generator = cChunkGenerator();
+}