From 2aa28ad6f453f65bdbf682a62ffae26fcecaa437 Mon Sep 17 00:00:00 2001 From: Tycho Date: Sun, 19 Jan 2014 12:50:07 -0800 Subject: First attempt at Compiling Generator seperatly --- CMakeLists.txt | 4 ++++ Tools/GeneratorPerformanceTest/CMakeLists.txt | 12 ++++++++++++ Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp | 7 +++++++ 3 files changed, 23 insertions(+) create mode 100644 Tools/GeneratorPerformanceTest/CMakeLists.txt create mode 100644 Tools/GeneratorPerformanceTest/GeneratorPerformanceTest.cpp 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(); +} -- cgit v1.2.3