cmake_minimum_required(VERSION 3.23) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(PreProjectInit) calculate_xray_build_id(XRAY_BUILD_ID) project(OpenXRay DESCRIPTION "OpenXRay is an improved version of the X-Ray Engine, \ the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World." VERSION 1.6.02.${XRAY_BUILD_ID} HOMEPAGE_URL "https://github.com/OpenXRay/xray-16" LANGUAGES CXX C ) # Keep a stable engine root when OpenXRay is embedded with add_subdirectory(). # CMAKE_SOURCE_DIR belongs to the outer application in that configuration. set(XRAY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") option(BUILD_SHARED_LIBS "Build shared libraries" ${BUILD_SHARED_LIBS_DEFAULT_VALUE}) option(XRAY_USE_LUAJIT "Use LuaJIT" ON) option(XRAY_USE_ASAN "Use AddressSanitizer" OFF) option(XRAY_ENABLE_TRACY "Enable tracy profiler" OFF) include(XRay.Build) include(XRay.Packaging) add_subdirectory(Externals) add_subdirectory(src) add_subdirectory(res) add_subdirectory(misc)