forked from Mirrorlandia_minetest/irrlicht
28 lines
844 B
CMake
28 lines
844 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(Irrlicht)
|
|
|
|
set(IRRLICHT_VERSION_MAJOR 1)
|
|
set(IRRLICHT_VERSION_MINOR 9)
|
|
set(IRRLICHT_VERSION_RELEASE 0)
|
|
|
|
set(VERSION "${IRRLICHT_VERSION_MAJOR}.${IRRLICHT_VERSION_MINOR}.${IRRLICHT_VERSION_RELEASE}")
|
|
message(STATUS "*** Building Irrlicht ${VERSION} ***")
|
|
|
|
if(APPLE)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/OSX)
|
|
elseif(WIN32)
|
|
# good enough
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/Win32-gcc)
|
|
else()
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/Linux)
|
|
endif()
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: Debug or Release" FORCE)
|
|
endif()
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
add_subdirectory(source/Irrlicht)
|