aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2024-01-03 23:54:41 +0100
committerNorthstar <northstar@northstar.tf>2024-01-03 23:54:41 +0100
commit1220958ab8333d22605b2dccdd4a81ee278fa22b (patch)
tree67218cc66501e9b056740766d533755003b8a3e5
parent36e1093620c59f8ac10bd59d4d05ec3ceffd15f7 (diff)
downloadNorthstarLauncher-1220958ab8333d22605b2dccdd4a81ee278fa22b.tar.gz
NorthstarLauncher-1220958ab8333d22605b2dccdd4a81ee278fa22b.zip
Format cmake files
-rw-r--r--CMakeLists.txt30
1 files changed, 20 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9bea0ce8..ab461ae2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,10 +1,18 @@
cmake_minimum_required(VERSION 3.15)
-project(Northstar CXX ASM_MASM)
+project(
+ Northstar
+ CXX
+ ASM_MASM
+ )
if(NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE "Release" CACHE STRING
- "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
+ set(CMAKE_BUILD_TYPE
+ "Release"
+ CACHE STRING
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
+ FORCE
+ )
endif()
# Language specs
@@ -15,16 +23,18 @@ set(CMAKE_VS_PLATFORM_TOOLSET v143)
# This determines the real binary root directory
set(NS_BINARY_DIR ${CMAKE_BINARY_DIR}/game)
-# NOTE [Fifty]: Visual studio deems Build root with the value "${projectDir}"
-# in CMakeSettings.json as invalid and defaults to using a temporary dir
-# 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 without it being cluttered up by cmake files.
+# NOTE [Fifty]: Visual studio deems Build root with the value "${projectDir}" in CMakeSettings.json as invalid and
+# defaults to using a temporary dir 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
+# without it being cluttered up by cmake files.
message(STATUS "NS: Building to ${NS_BINARY_DIR}")
-
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/primedev/cmake")
+list(
+ APPEND
+ CMAKE_MODULE_PATH
+ "${CMAKE_CURRENT_SOURCE_DIR}/primedev/cmake"
+ )
include(utils)
include_directories(primedev)