2024-03-21 20:13:15 +01:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
2024-04-06 12:53:24 +02:00
|
|
|
project(Irrlicht LANGUAGES CXX)
|
2024-03-21 20:13:15 +01:00
|
|
|
|
2024-04-06 12:53:24 +02:00
|
|
|
message(STATUS "*** Building IrrlichtMt ***")
|
2024-03-21 20:13:15 +01:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: Debug or Release" FORCE)
|
|
|
|
endif()
|
|
|
|
|
2024-04-06 12:53:24 +02:00
|
|
|
# FIXME: tests need to be moved to MT if we want to keep them
|
|
|
|
|
2024-03-21 20:13:15 +01:00
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
2024-04-06 12:53:24 +02:00
|
|
|
#enable_testing()
|
2024-03-21 20:13:15 +01:00
|
|
|
add_subdirectory(src)
|
2024-04-06 12:53:24 +02:00
|
|
|
#add_subdirectory(test)
|
2024-03-21 20:13:15 +01:00
|
|
|
|
2024-04-06 12:53:24 +02:00
|
|
|
#option(BUILD_EXAMPLES "Build example applications" FALSE)
|
|
|
|
#if(BUILD_EXAMPLES)
|
|
|
|
# add_subdirectory(examples)
|
|
|
|
#endif()
|