forked from MergHQ/CRYENGINE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (22 loc) · 839 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.14)
if(NOT DEFINED CRYENGINE_DIR)
set(CRYENGINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
endif()
# Part of the setup is split into the InitialSetup file so projects created by cryrun can include it.
# This needs to be re-visited after the toolchain files are cleaned up.
include(Tools/CMake/InitialSetup.cmake)
# Setting the project version
if (NOT VERSION)
if (METADATA_VERSION)
set(VERSION ${METADATA_VERSION})
else()
set(VERSION "1.0.0.0")
endif()
endif()
set(METADATA_VERSION ${VERSION} CACHE STRING "Version number for executable metadata" FORCE)
# Declare the project.
set(METADATA_PROJECT_NAME "CRYENGINE" CACHE STRING "Name of the solution project")
project("${METADATA_PROJECT_NAME}_${BUILD_PLATFORM}"
VERSION "${METADATA_VERSION}"
LANGUAGES C CXX)
include(Tools/CMake/Configure.cmake)