Changed to C++17 and getting things ready

master
Ruben 2022-12-20 16:35:42 +01:00
parent 411a5ac0ed
commit d1c6c52d22
No known key found for this signature in database
GPG Key ID: F6DAAC2742760162
3 changed files with 15 additions and 2 deletions

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.7)
project(ceev)
set(CMAKE_CXX_STANDARD 17)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(ceev src/ceev.cc src/ceev.h)

View File

@ -8,11 +8,19 @@ int usage() {
std::cout << "Run '" << program_invocation_short_name << " --help' for more information.\n" << std::endl;
return 1;
}
int show_help() {
return 0;
}
int create_fs() {
std::string cwd = fs::current_path();
}
int main(int argc, char **argv) {
if (argc <= 1) {
return usage();
}
std::cout << "Hello World" << std::endl;
if (std::strcmp(argv[1], "init")) return create_fs();
if (std::strcmp(argv[1], "--help")) return show_help();
return 0;
}

View File

@ -1,8 +1,12 @@
#pragma once
#include <iostream>
#include <cstring>
#include <filesystem>
#include <iostream>
namespace fs = std::filesystem;
int usage();
int show_help();
int create_fs();
int main(int argc, char **argv);