summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-16 12:37:31 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-16 12:37:31 +0100
commit2acf218700a6ae6d5cb441d1e4138b98519f6dfe (patch)
tree89f2e452e293d50d17edb514d3b6dfedcd6f83f2 /CMakeLists.txt
parentCHange MCADefrag CMakelist to use zlib CMakeList (diff)
downloadcuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar.gz
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar.bz2
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar.lz
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar.xz
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.tar.zst
cuberite-2acf218700a6ae6d5cb441d1e4138b98519f6dfe.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a42d8c599..8c8daf915 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,15 @@ cmake_minimum_required (VERSION 2.6)
# 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)
+#THis has to be done before any flags have been set up.
+if(${BUILD_TOOLS})
+ add_subdirectory(Tools/MCADefrag/)
+endif()
+
+if(${BUILD_UNSTABLE_TOOLS})
+ add_subdirectory(Tools/GeneratorPerformanceTest/)
+endif()
+
include(SetFlags.cmake)
set_flags()
set_lib_flags()
@@ -46,9 +55,5 @@ add_subdirectory(lib/polarssl/ EXCLUDE_FROM_ALL)
set_exe_flags()
-if(${BUILD_TOOLS})
-add_subdirectory(Tools/GeneratorPerformanceTest/)
-endif()
-
add_subdirectory (src)