summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/ChunkBuffer/CMakeLists.txt6
-rw-r--r--tests/ChunkBuffer/creatable.cpp7
3 files changed, 14 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index c2f9ceb5a..1e3a01dc8 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -2,4 +2,6 @@ cmake_minimum_required (VERSION 2.6)
enable_testing()
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+
add_subdirectory(ChunkBuffer)
diff --git a/tests/ChunkBuffer/CMakeLists.txt b/tests/ChunkBuffer/CMakeLists.txt
index 33722f785..08d01d1a0 100644
--- a/tests/ChunkBuffer/CMakeLists.txt
+++ b/tests/ChunkBuffer/CMakeLists.txt
@@ -2,9 +2,15 @@ cmake_minimum_required (VERSION 2.6)
enable_testing()
+include_directories(${CMAKE_SOURCE_DIR}/src/)
+
add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkBuffer.cpp)
add_executable(creatable-exe creatable.cpp)
target_link_libraries(creatable-exe ChunkBuffer)
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)
diff --git a/tests/ChunkBuffer/creatable.cpp b/tests/ChunkBuffer/creatable.cpp
index 573f09de9..49204c879 100644
--- a/tests/ChunkBuffer/creatable.cpp
+++ b/tests/ChunkBuffer/creatable.cpp
@@ -1,4 +1,9 @@
+
+#include "TestGlobals.h"
+#include "ChunkBuffer.h"
+
int main(int argc, char** argv)
{
-return 0;
+ cChunkBuffer buffer;
+ return 0;
}