Initial commit

This commit is contained in:
Gabriel Ionita 2025-10-24 10:40:03 +01:00
commit 374fce6428
Signed by: gabi
SSH Key Fingerprint: SHA256:LrMyvxum00K+HwzsYQc+lsxzqdX49JqIdJLc62SJqJY
7 changed files with 54 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "vcpkg"]
path = vcpkg
url = https://github.com/microsoft/vcpkg.git

12
CMakeLists.txt Normal file
View File

@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 4.0.0)
project(gwatch VERSION 0.0.1 LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
find_package(cxxopts CONFIG REQUIRED)
find_package(Catch2 CONFIG REQUIRED)
add_executable(gwatch main.cpp)
target_link_libraries(gwatch PRIVATE cxxopts::cxxopts)

26
CMakePresets.json Normal file
View File

@ -0,0 +1,26 @@
{
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
"version": 10,
"configurePresets": [
{
"name": "debug",
"environment": {
"VCPKG_ROOT": "./vcpkg"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"environment": {
"VCPKG_ROOT": "./vcpkg"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}

5
main.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "hello" << std::endl;
}

1
vcpkg Submodule

@ -0,0 +1 @@
Subproject commit 3b9d086009cc1c2256e9c28ad44a00036fbd9b26

6
vcpkg.json Normal file
View File

@ -0,0 +1,6 @@
{
"dependencies": [
"cxxopts",
"catch2"
]
}