CMakeLists.txt 609 B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 3.12)
  2. project(Irrlicht LANGUAGES CXX)
  3. message(STATUS "*** Building IrrlichtMt ***")
  4. set(CMAKE_CXX_STANDARD 17)
  5. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  6. if(NOT CMAKE_BUILD_TYPE)
  7. set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: Debug or Release" FORCE)
  8. endif()
  9. # FIXME: tests need to be moved to MT if we want to keep them
  10. list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
  11. #enable_testing()
  12. add_subdirectory(src)
  13. #add_subdirectory(test)
  14. #option(BUILD_EXAMPLES "Build example applications" FALSE)
  15. #if(BUILD_EXAMPLES)
  16. # add_subdirectory(examples)
  17. #endif()