Merge branch 'release' into stabilisation
[CRYENGINE.git] / CMakeLists.txt
blob6fc0183f8d1c2b95ab14744e2bdcb7c9f49eef18
1 cmake_minimum_required(VERSION 3.14)
3 if(NOT DEFINED CRYENGINE_DIR)
4         set(CRYENGINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
5 endif()
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
12 if (NOT VERSION)
13         if (METADATA_VERSION)
14                 set(VERSION ${METADATA_VERSION})
15         else()
16                 set(VERSION "1.0.0.0")
17         endif()
18 endif()
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}"
25                 LANGUAGES C CXX)
27 include(Tools/CMake/Configure.cmake)