Initial commit
This commit is contained in:
commit
374fce6428
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build/
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "vcpkg"]
|
||||
path = vcpkg
|
||||
url = https://github.com/microsoft/vcpkg.git
|
||||
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal 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
26
CMakePresets.json
Normal 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
5
main.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "hello" << std::endl;
|
||||
}
|
||||
1
vcpkg
Submodule
1
vcpkg
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 3b9d086009cc1c2256e9c28ad44a00036fbd9b26
|
||||
6
vcpkg.json
Normal file
6
vcpkg.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"dependencies": [
|
||||
"cxxopts",
|
||||
"catch2"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user