-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (32 loc) · 1.14 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.20)
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(
FATAL_ERROR
"Use build directory different from source direcory!"
)
endif()
if(NOT DEFINED BLACKBOX_DIR)
set(BLACKBOX_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)
#add_compile_definitions(-DUSE_DEBUG_NEW)
# 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 "BLACKBOX" CACHE STRING "Name of the solution project")
project("${METADATA_PROJECT_NAME}_${BUILD_PLATFORM}"
VERSION "${METADATA_VERSION}"
# Strange Behaviour! D in tail not worked!
LANGUAGES C CXX)
###################################################
include(Tools/CMake/Configure.cmake)
###################################################