chore: build with cmake

This commit is contained in:
Cat Flynn 2023-07-23 16:46:30 +02:00
parent b14f8d5950
commit 43ce32922b
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

5
CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.27)
project(HelloWorld)
add_executable(${PROJECT_NAME} hello.cpp)

View File

@ -1,3 +1,14 @@
// To compile on Windows
// Install CMake
// https://cmake.org/download
// Add to PATH for all users
// from project root:
// mkdir build
// cd build
// cmake ..
// cmake --build .
#include <iostream> #include <iostream>
int main() int main()