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 /CMakeLists.txt | |
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 '')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a860920c..45fc8c37a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 2.6) +cmake_minimum_required (VERSION 2.8.2) # Without this, the MSVC variable isn't defined for MSVC builds ( http://www.cmake.org/pipermail/cmake/2011-November/047130.html ) enable_language(CXX C) @@ -69,3 +69,8 @@ set_exe_flags() add_subdirectory (src) +if(${SELF_TEST}) + enable_testing() + add_subdirectory (tests) +endif() + |