diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-27 21:25:03 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-27 21:25:03 +0200 |
commit | 1d3ad6faa22a040bc6bb15727b9783ae2f547a02 (patch) | |
tree | a350efccb3eebb6410d91175b92a227dd5d26110 /tests | |
parent | Fixed bad comment (diff) | |
download | cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.gz cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.bz2 cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.lz cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.xz cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.zst cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.zip |
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 5 | ||||
-rw-r--r-- | tests/ChunkBuffer/CMakeLists.txt | 10 | ||||
-rw-r--r-- | tests/ChunkBuffer/creatable.cpp | 4 |
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 000000000..c2f9ceb5a --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required (VERSION 2.6) + +enable_testing() + +add_subdirectory(ChunkBuffer) diff --git a/tests/ChunkBuffer/CMakeLists.txt b/tests/ChunkBuffer/CMakeLists.txt new file mode 100644 index 000000000..33722f785 --- /dev/null +++ b/tests/ChunkBuffer/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required (VERSION 2.6) + +enable_testing() + +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) diff --git a/tests/ChunkBuffer/creatable.cpp b/tests/ChunkBuffer/creatable.cpp new file mode 100644 index 000000000..573f09de9 --- /dev/null +++ b/tests/ChunkBuffer/creatable.cpp @@ -0,0 +1,4 @@ +int main(int argc, char** argv) +{ +return 0; +} |