From 2ff08dfdbb94d059a2c92da56c0266d38854df8a Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 30 Jan 2021 04:33:00 -0500 Subject: Initial commit --- .gitignore | 1 + CMakeLists.txt | 28 ++++++++++++++++++++++++++++ src/main.cpp | 6 ++++++ 3 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 src/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..52d0ce5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required (VERSION 3.1) +project (tanetane) + +set(CMAKE_BUILD_TYPE Debug) + +# Get dependencies. +find_package(SDL2 REQUIRED) + +set(ALL_LIBS + ${SDL2_LIBRARY} +) + +include_directories( + ${SDL2_INCLUDE_DIR} + src +) + +link_directories( + ${SDL2_LIBRARY_DIRS} +) + +add_executable(tanetane + src/main.cpp +) + +set_property(TARGET tanetane PROPERTY CXX_STANDARD 17) +set_property(TARGET tanetane PROPERTY CXX_STANDARD_REQUIRED ON) +target_link_libraries(tanetane ${ALL_LIBS}) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..22bdf92 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main(int, char**) { + std::cout << "hi" << std::endl; + return 0; +} -- cgit 1.4.1