mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
The debugger can now be immediately invoked on all runtime projects after generating the solution without having to set anything up.
26 lines
1.1 KiB
CMake
26 lines
1.1 KiB
CMake
# -----------------------------------------------------------------------------
|
|
# Initial setup for build system
|
|
# -----------------------------------------------------------------------------
|
|
macro( initial_setup )
|
|
set( CMAKE_CXX_STANDARD 17 )
|
|
set( CMAKE_CXX_STANDARD_REQUIRED True )
|
|
|
|
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" )
|
|
|
|
set( BUILD_OUTPUT_DIR "game" CACHE PATH "Build output directory" )
|
|
|
|
set( GLOBAL_PCH
|
|
"${ENGINE_SOURCE_DIR}/core/stdafx.h"
|
|
) # Global precompiled header shared among all libraries
|
|
|
|
set_property( GLOBAL PROPERTY USE_FOLDERS ON ) # Use filters
|
|
endmacro()
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Set global configuration types
|
|
# -----------------------------------------------------------------------------
|
|
macro( setup_build_configurations )
|
|
set( CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" CACHE STRING "" FORCE )
|
|
endmacro()
|