mirror of
https://github.com/luanti-org/luanti.git
synced 2026-01-02 19:25:20 +01:00
CMake working on Linux (not on windows)
--HG-- rename : Makefile => Makefile.bak
This commit is contained in:
15
CMakeLists.txt
Normal file
15
CMakeLists.txt
Normal file
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user