commit fe0eb7b4ebafc1c1a8dd0b561568cdc11f381b61 Author: Ruben Date: Tue Dec 20 15:59:28 2022 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0e0a72 --- /dev/null +++ b/.gitignore @@ -0,0 +1,76 @@ +# Created by https://www.toptal.com/developers/gitignore/api/cmake,c++,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=cmake,c++,visualstudiocode + +### C++ ### +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +### CMake ### +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps + +### CMake Patch ### +# External projects +*-prefix/ + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# End of https://www.toptal.com/developers/gitignore/api/cmake,c++,visualstudiocode + +build/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4e7c8e0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.7) + +project(ceev) + +find_package(SDL2 REQUIRED) +include_directories(${SDL2_INCLUDE_DIRS}) +add_executable(ceev src/ceev.cc src/ceev.h) +target_link_libraries(ceev ${SDL2_LIBRARIES}) \ No newline at end of file diff --git a/src/ceev.cc b/src/ceev.cc new file mode 100644 index 0000000..4443fc2 --- /dev/null +++ b/src/ceev.cc @@ -0,0 +1,18 @@ +#include "ceev.h" + +int usage() { + std::cout << "Usage:\n"; + std::cout << "\n\t"; + std::cout << program_invocation_short_name << " [verb] \n"; + std::cout << "\n"; + std::cout << "Run '" << program_invocation_short_name << " --help' for more information.\n" << std::endl; + return 1; +} + +int main(int argc, char **argv) { + if (argc <= 1) { + return usage(); + } + std::cout << "Hello World" << std::endl; + return 0; +} \ No newline at end of file diff --git a/src/ceev.h b/src/ceev.h new file mode 100644 index 0000000..e42f0fb --- /dev/null +++ b/src/ceev.h @@ -0,0 +1,5 @@ +#pragma once + +#include + +int main(int argc, char **argv); \ No newline at end of file