2023-05-11 23:50:06 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Initial setup for build system
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
macro( initial_setup )
|
|
|
|
set( CMAKE_CXX_STANDARD 17 )
|
|
|
|
set( CMAKE_CXX_STANDARD_REQUIRED True )
|
|
|
|
|
2023-06-17 00:45:27 +02:00
|
|
|
set( ENGINE_SOURCE_DIR "${CMAKE_SOURCE_DIR}/r5dev" CACHE PATH "Engine source directory" )
|
|
|
|
set( THIRDPARTY_SOURCE_DIR "${ENGINE_SOURCE_DIR}/thirdparty" CACHE PATH "Thirdparty source directory" )
|
2023-05-14 16:27:31 +02:00
|
|
|
|
|
|
|
set( GLOBAL_PCH
|
|
|
|
"${ENGINE_SOURCE_DIR}/core/stdafx.h"
|
|
|
|
) # Global precompiled header shared among all libraries
|
2023-05-11 23:50:06 +02:00
|
|
|
|
|
|
|
set_property( GLOBAL PROPERTY USE_FOLDERS ON ) # Use filters
|
|
|
|
endmacro()
|
2023-05-09 23:55:46 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Set global configuration types
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
macro( setup_build_configurations )
|
2023-05-11 23:50:06 +02:00
|
|
|
set( CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" CACHE STRING "" FORCE )
|
2023-05-09 23:55:46 +02:00
|
|
|
endmacro()
|