-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0445c1d
commit 696bd4f
Showing
126 changed files
with
2,503 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# Application build output | ||
build/ | ||
|
||
# Created by CPack when executing tests. | ||
Testing/ | ||
|
||
# Generated by the profiler on debug. | ||
profile.json | ||
*-profile.json | ||
|
||
# Created by running the application. | ||
*.log | ||
|
||
# User defined CMake preset file. | ||
CMakeUserPresets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
include(cmake/AppleBuild.cmake) | ||
include(cmake/UniversalAppleBuild.cmake) | ||
|
||
project( | ||
BasicGuiProjectSetupSDL2OpenGL | ||
BasicGuiProjectSetupOpenGL | ||
DESCRIPTION "Base gui project setup with SDL2 and OpenGL." | ||
VERSION 1.0.0 | ||
LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(PROJECT_COMPANY_NAME "My Company") | ||
set(PROJECT_COMPANY_NAMESPACE "com.mycompany") # Reverse domain name notation | ||
|
||
include(cmake/StandardProjectSettings.cmake) | ||
include(GNUInstallDirs) | ||
|
||
# Link this "library" to use the warnings specified in CompilerWarnings.cmake | ||
# Link this "library" to use the warnings specified in CompilerWarnings.cmake. | ||
add_library(project_warnings INTERFACE) | ||
include(cmake/CompilerWarnings.cmake) | ||
set_project_warnings(project_warnings) | ||
|
||
enable_testing() | ||
|
||
add_subdirectory(packaging) | ||
add_subdirectory(vendor) | ||
add_subdirectory(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 22, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "build/debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "release", | ||
"displayName": "Release", | ||
"generator": "Ninja", | ||
"binaryDir": "build/release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "xcode-debug", | ||
"displayName": "Debug (Xcode)", | ||
"generator": "Xcode", | ||
"binaryDir": "build/xcode-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "xcode-release", | ||
"displayName": "Release (Xcode)", | ||
"generator": "Xcode", | ||
"binaryDir": "build/xcode-release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# This file needs to be included before calling `project`. | ||
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
if (APPLE AND "${CMAKE_GENERATOR}" STREQUAL "Xcode") | ||
# Generate universal executable for Apple hardware. | ||
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "") | ||
set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)") | ||
|
||
# Support older macOS versions. | ||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "Minimum OS X deployment version") | ||
set(CMAKE_OSX_SYSROOT macosx10.15) | ||
endif () |
Oops, something went wrong.