From ca54519926b25813208e4df6d247de2d522a53c0 Mon Sep 17 00:00:00 2001 From: Pablo Rodriguez Date: Sun, 27 Jul 2025 11:36:32 -0400 Subject: [PATCH] First commit --- .gitignore | 1 + CMakeLists.txt | 5 +++++ CMakePresets.json | 12 ++++++++++++ source/app/CMakeLists.txt | 3 +++ source/app/main.c | 5 +++++ vcpkg-configuration.json | 14 ++++++++++++++ vcpkg.json | 7 +++++++ 7 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 CMakePresets.json create mode 100644 source/app/CMakeLists.txt create mode 100644 source/app/main.c create mode 100644 vcpkg-configuration.json create mode 100644 vcpkg.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c003733 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6b965dc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.31) + +project(Ugly) + +add_subdirectory(./source/app) diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..9a228e6 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,12 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "vcpkg", + "generator": "Visual Studio 17 2022", + "architecture": "x64", + "binaryDir": "${sourceDir}/build", + "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" + } + ] +} diff --git a/source/app/CMakeLists.txt b/source/app/CMakeLists.txt new file mode 100644 index 0000000..e43b8f7 --- /dev/null +++ b/source/app/CMakeLists.txt @@ -0,0 +1,3 @@ +project(UglyMain) + +add_executable(${PROJECT_NAME} main.c) diff --git a/source/app/main.c b/source/app/main.c new file mode 100644 index 0000000..f47badb --- /dev/null +++ b/source/app/main.c @@ -0,0 +1,5 @@ +#include + +int main(void) { + printf("hello world!\n"); +} diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json new file mode 100644 index 0000000..0f3f891 --- /dev/null +++ b/vcpkg-configuration.json @@ -0,0 +1,14 @@ +{ + "default-registry": { + "kind": "git", + "baseline": "4f8fe05871555c1798dbcb1957d0d595e94f7b57", + "repository": "https://github.com/microsoft/vcpkg" + }, + "registries": [ + { + "kind": "artifact", + "location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip", + "name": "microsoft" + } + ] +} diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000..7549f4f --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,7 @@ +{ + "dependencies": [ + "glfw3", + "glm", + "glew" + ] +}