First attempt at Compiling Generator seperatly
This commit is contained in:
parent
f13a14d2cf
commit
2aa28ad6f4
@ -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)
|
||||
|
||||
|
12
Tools/GeneratorPerformanceTest/CMakeLists.txt
Normal file
12
Tools/GeneratorPerformanceTest/CMakeLists.txt
Normal 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)
|
||||
|
@ -0,0 +1,7 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "ChunkGenerator.h"
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
cChunkGenerator Generator = cChunkGenerator();
|
||||
}
|
Loading…
Reference in New Issue
Block a user