1 cmake_minimum_required(VERSION 3.14)
3 if(NOT DEFINED CRYENGINE_DIR)
4 set(CRYENGINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
7 # Part of the setup is split into the InitialSetup file so projects created by cryrun can include it.
8 # This needs to be re-visited after the toolchain files are cleaned up.
9 include(Tools/CMake/InitialSetup.cmake)
11 # Setting the project version
14 set(VERSION ${METADATA_VERSION})
16 set(VERSION "1.0.0.0")
19 set(METADATA_VERSION ${VERSION} CACHE STRING "Version number for executable metadata" FORCE)
21 # Declare the project.
22 set(METADATA_PROJECT_NAME "CRYENGINE" CACHE STRING "Name of the solution project")
23 project("${METADATA_PROJECT_NAME}_${BUILD_PLATFORM}"
24 VERSION "${METADATA_VERSION}"
27 include(Tools/CMake/Configure.cmake)