summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 04:33:00 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-01-30 04:33:00 -0500
commit2ff08dfdbb94d059a2c92da56c0266d38854df8a (patch)
tree64678131bea1c9c45892f196e71bb1959b5dd781
downloadtanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.tar.gz
tanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.tar.bz2
tanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.zip
Initial commit
-rw-r--r--.gitignore1
-rw-r--r--CMakeLists.txt28
-rw-r--r--src/main.cpp6
3 files changed, 35 insertions, 0 deletions
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 @@
1cmake_minimum_required (VERSION 3.1)
2project (tanetane)
3
4set(CMAKE_BUILD_TYPE Debug)
5
6# Get dependencies.
7find_package(SDL2 REQUIRED)
8
9set(ALL_LIBS
10 ${SDL2_LIBRARY}
11)
12
13include_directories(
14 ${SDL2_INCLUDE_DIR}
15 src
16)
17
18link_directories(
19 ${SDL2_LIBRARY_DIRS}
20)
21
22add_executable(tanetane
23 src/main.cpp
24)
25
26set_property(TARGET tanetane PROPERTY CXX_STANDARD 17)
27set_property(TARGET tanetane PROPERTY CXX_STANDARD_REQUIRED ON)
28target_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 @@
1#include <iostream>
2
3int main(int, char**) {
4 std::cout << "hi" << std::endl;
5 return 0;
6}