diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-16 12:37:31 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-16 12:37:31 +0100 |
commit | 2acf218700a6ae6d5cb441d1e4138b98519f6dfe (patch) | |
tree | 89f2e452e293d50d17edb514d3b6dfedcd6f83f2 /CMakeLists.txt | |
parent | CHange MCADefrag CMakelist to use zlib CMakeList (diff) | |
download | cuberite-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 '')
-rw-r--r-- | CMakeLists.txt | 13 |
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) |