diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-30 04:33:00 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-01-30 04:33:00 -0500 |
commit | 2ff08dfdbb94d059a2c92da56c0266d38854df8a (patch) | |
tree | 64678131bea1c9c45892f196e71bb1959b5dd781 | |
download | tanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.tar.gz tanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.tar.bz2 tanetane-2ff08dfdbb94d059a2c92da56c0266d38854df8a.zip |
Initial commit
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 28 | ||||
-rw-r--r-- | src/main.cpp | 6 |
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 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | ||
2 | project (tanetane) | ||
3 | |||
4 | set(CMAKE_BUILD_TYPE Debug) | ||
5 | |||
6 | # Get dependencies. | ||
7 | find_package(SDL2 REQUIRED) | ||
8 | |||
9 | set(ALL_LIBS | ||
10 | ${SDL2_LIBRARY} | ||
11 | ) | ||
12 | |||
13 | include_directories( | ||
14 | ${SDL2_INCLUDE_DIR} | ||
15 | src | ||
16 | ) | ||
17 | |||
18 | link_directories( | ||
19 | ${SDL2_LIBRARY_DIRS} | ||
20 | ) | ||
21 | |||
22 | add_executable(tanetane | ||
23 | src/main.cpp | ||
24 | ) | ||
25 | |||
26 | set_property(TARGET tanetane PROPERTY CXX_STANDARD 17) | ||
27 | set_property(TARGET tanetane PROPERTY CXX_STANDARD_REQUIRED ON) | ||
28 | 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 @@ | |||
1 | #include <iostream> | ||
2 | |||
3 | int main(int, char**) { | ||
4 | std::cout << "hi" << std::endl; | ||
5 | return 0; | ||
6 | } | ||