Format cmake files
This commit is contained in:
parent
36e1093620
commit
1220958ab8
|
@ -1,10 +1,18 @@
|
||||||
cmake_minimum_required(VERSION 3.15)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
project(Northstar CXX ASM_MASM)
|
project(
|
||||||
|
Northstar
|
||||||
|
CXX
|
||||||
|
ASM_MASM
|
||||||
|
)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
|
set(CMAKE_BUILD_TYPE
|
||||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
"Release"
|
||||||
|
CACHE STRING
|
||||||
|
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
||||||
|
FORCE
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Language specs
|
# Language specs
|
||||||
|
@ -15,16 +23,18 @@ set(CMAKE_VS_PLATFORM_TOOLSET v143)
|
||||||
|
|
||||||
# This determines the real binary root directory
|
# This determines the real binary root directory
|
||||||
set(NS_BINARY_DIR ${CMAKE_BINARY_DIR}/game)
|
set(NS_BINARY_DIR ${CMAKE_BINARY_DIR}/game)
|
||||||
# NOTE [Fifty]: Visual studio deems Build root with the value "${projectDir}"
|
# NOTE [Fifty]: Visual studio deems Build root with the value "${projectDir}" in CMakeSettings.json as invalid and
|
||||||
# in CMakeSettings.json as invalid and defaults to using a temporary dir
|
# defaults to using a temporary dir somewhere in %USER%/CMakeBuilds. To combat this we set it to "${projectDir}/build"
|
||||||
# somewhere in %USER%/CMakeBuilds. To combat this we set it to "${projectDir}/build"
|
# and then link binaries in ${CMAKE_BINARY_DIR}/game. This means you can copy your game into ${CMAKE_BINARY_DIR}/game
|
||||||
# and then link binaries in ${CMAKE_BINARY_DIR}/game. This means you can copy your
|
# without it being cluttered up by cmake files.
|
||||||
# game into ${CMAKE_BINARY_DIR}/game without it being cluttered up by cmake files.
|
|
||||||
|
|
||||||
message(STATUS "NS: Building to ${NS_BINARY_DIR}")
|
message(STATUS "NS: Building to ${NS_BINARY_DIR}")
|
||||||
|
|
||||||
|
list(
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/primedev/cmake")
|
APPEND
|
||||||
|
CMAKE_MODULE_PATH
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/primedev/cmake"
|
||||||
|
)
|
||||||
include(utils)
|
include(utils)
|
||||||
|
|
||||||
include_directories(primedev)
|
include_directories(primedev)
|
||||||
|
|
Loading…
Reference in New Issue