1
0

First attempt at Compiling Generator seperatly

This commit is contained in:
Tycho 2014-01-19 12:50:07 -08:00
parent f13a14d2cf
commit 2aa28ad6f4
3 changed files with 23 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -0,0 +1,7 @@
#include "Globals.h"
#include "ChunkGenerator.h"
int main(int argc, char * argv[]) {
cChunkGenerator Generator = cChunkGenerator();
}