From d43806895e8805db2e841b1c91b0f1265555110e Mon Sep 17 00:00:00 2001 From: Pcornat Date: Sat, 8 Jan 2022 20:02:04 +0100 Subject: [PATCH] Init --- .gitignore | 4 ++++ .gitmodules | 6 ++++++ CMakeLists.txt | 11 +++++++++++ extern/glfw | 1 + extern/spdlog | 1 + src/main.cpp | 6 ++++++ 6 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 CMakeLists.txt create mode 160000 extern/glfw create mode 160000 extern/spdlog create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..443f2e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +cmake-* +build/ +.idea/ +!.idea/cmake.xml \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7f53cf3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "extern/glfw"] + path = extern/glfw + url = https://github.com/glfw/glfw.git +[submodule "extern/spdlog"] + path = extern/spdlog + url = https://github.com/gabime/spdlog.git diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..cde0bea --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.19 FATAL_ERROR) +project(BillySheet) + +add_executable(BillySheet src/main.cpp) + +set_target_properties(BillySheet PROPERTIES + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + CXX_EXTENSIONS OFF + INTERPROCEDURAL_OPTIMIZATION ON + UNITY_BUILD ON) diff --git a/extern/glfw b/extern/glfw new file mode 160000 index 0000000..df8d7bc --- /dev/null +++ b/extern/glfw @@ -0,0 +1 @@ +Subproject commit df8d7bc892937a8b0f7c604c92a9f64f383cf48c diff --git a/extern/spdlog b/extern/spdlog new file mode 160000 index 0000000..729d7f6 --- /dev/null +++ b/extern/spdlog @@ -0,0 +1 @@ +Subproject commit 729d7f6d8837b6693e7b378408518ea1710f80cb diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..ec3351e --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello, World!" << std::endl; + return EXIT_SUCCESS; +}