cCHunkBuffer that compiles with TestGlobals.h
This commit is contained in:
parent
8d6919f3b6
commit
616ddf5ca5
@ -10,7 +10,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
#include "StringUtils.h"
|
||||||
|
|
||||||
|
|
||||||
// tolua_begin
|
// tolua_begin
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
|
#include "ChunkDef.h"
|
||||||
|
|
||||||
|
|
||||||
#define CHUNK_SECTION_HEIGHT 16
|
#define CHUNK_SECTION_HEIGHT 16
|
||||||
#define CHUNK_SECTION_NUM (256 / CHUNK_SECTION_HEIGHT)
|
#define CHUNK_SECTION_NUM (256 / CHUNK_SECTION_HEIGHT)
|
||||||
|
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef std::string AString;
|
typedef std::string AString;
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
#define _USE_MATH_DEFINES // Enable non-standard math defines (MSVC)
|
#define _USE_MATH_DEFINES // Enable non-standard math defines (MSVC)
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <list>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,4 +2,6 @@ cmake_minimum_required (VERSION 2.6)
|
|||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
add_subdirectory(ChunkBuffer)
|
add_subdirectory(ChunkBuffer)
|
||||||
|
@ -2,9 +2,15 @@ cmake_minimum_required (VERSION 2.6)
|
|||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
include_directories(${CMAKE_SOURCE_DIR}/src/)
|
||||||
|
|
||||||
add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkBuffer.cpp)
|
add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkBuffer.cpp)
|
||||||
|
|
||||||
|
|
||||||
add_executable(creatable-exe creatable.cpp)
|
add_executable(creatable-exe creatable.cpp)
|
||||||
target_link_libraries(creatable-exe ChunkBuffer)
|
target_link_libraries(creatable-exe ChunkBuffer)
|
||||||
add_test(NAME creatable-test COMMAND creatable-exe)
|
add_test(NAME creatable-test COMMAND creatable-exe)
|
||||||
|
|
||||||
|
add_executable(coordinates-exe Coordinates.cpp)
|
||||||
|
target_link_libraries(coordinates-exe ChunkBuffer)
|
||||||
|
add_test(NAME coordinates-test COMMAND coordinates-exe)
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
|
|
||||||
|
#include "TestGlobals.h"
|
||||||
|
#include "ChunkBuffer.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
return 0;
|
cChunkBuffer buffer;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user