Initial commit
This commit is contained in:
parent
4d9e3baab3
commit
8bc42a853a
27
CMakeLists.txt
Normal file
27
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
project(discord-timestamp)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
add_executable(${CMAKE_PROJECT_NAME}
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE lib)
|
||||
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE
|
||||
# Make all warnings into errors
|
||||
-Werror
|
||||
|
||||
# Basic warning flags
|
||||
-Wall # Enable all common warnings
|
||||
-Wextra # Enable extra warnings not covered by -Wall
|
||||
-Wpedantic # Issue warnings demanded by strict ISO C and ISO C++
|
||||
-pedantic-errors # Like -Wpedantic but errors instead of warnings
|
||||
|
||||
# Specific warning categories
|
||||
-Wshadow # Warn when a variable declaration shadows another
|
||||
-Wcast-align # Warn for potential performance problems from memory alignment
|
||||
-Wconversion # Warn on type conversions that may lose data
|
||||
-Wsign-conversion # Warn on sign conversions
|
||||
-Wnull-dereference # Warn about null pointer dereference
|
||||
)
|
||||
11527
lib/CLI11.hpp
Normal file
11527
lib/CLI11.hpp
Normal file
File diff suppressed because it is too large
Load Diff
7
src/main.cpp
Normal file
7
src/main.cpp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <iostream>
|
||||
#include "CLI11.hpp"
|
||||
|
||||
int main([[maybe_unused]] int argc,[[maybe_unused]] char **argv) {
|
||||
std::cout << argc << argv[0];
|
||||
std::cout << "Hello world";
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user