diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-08 03:10:20 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-08 03:10:20 +0200 |
commit | d825ed572f97d7d354c84106e508d52255f5e94b (patch) | |
tree | c01f491235831b7ad0275f99aab3b677a4c11ebd /CMakeLists.txt | |
parent | 683b08beefae3c4842e4261dd379f2dadbe8ccbe (diff) | |
download | minetest-d825ed572f97d7d354c84106e508d52255f5e94b.tar.gz minetest-d825ed572f97d7d354c84106e508d52255f5e94b.tar.bz2 minetest-d825ed572f97d7d354c84106e508d52255f5e94b.zip |
CMake working on Linux (not on windows)
--HG--
rename : Makefile => Makefile.bak
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..53999e022 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 2.6) +if(${CMAKE_VERSION} STREQUAL "2.8.2") + # bug http://vtk.org/Bug/view.php?id=11020 + message( WARNING "CMake/CPack version 2.8.2 will not create working .deb packages!") +endif(${CMAKE_VERSION} STREQUAL "2.8.2") + +set(CMAKE_BUILD_TYPE Debug) +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + +# This is done here so that IRRDIR is relative to the typical cmake call directory +find_package(Irrlicht) + +# This way the CMakeLists.txt file in src/ is processed +add_subdirectory(src) + |