summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-05-23 21:28:29 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-05-23 21:28:29 -0400
commitf545cf0276e95c9dca33d36d1a0cfe3b4995473a (patch)
tree7ff4023bd6c9e22f82a230a358eb70521f4c2306 /CMakeLists.txt
downloadether-f545cf0276e95c9dca33d36d1a0cfe3b4995473a.tar.gz
ether-f545cf0276e95c9dca33d36d1a0cfe3b4995473a.tar.bz2
ether-f545cf0276e95c9dca33d36d1a0cfe3b4995473a.zip
somethign
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3c629f5 --- /dev/null +++ b/CMakeLists.txt
@@ -0,0 +1,33 @@
1cmake_minimum_required (VERSION 3.1)
2project (Ether)
3
4set(CMAKE_BUILD_TYPE Debug)
5
6# Set directory to look for package helpers.
7set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake")
8
9# Get dependencies.
10
11find_package(PkgConfig)
12pkg_check_modules(GLFW REQUIRED glfw3)
13
14find_package(SDL2 REQUIRED)
15
16set(ALL_LIBS
17 ${SDL2_LIBRARY}
18)
19
20include_directories(
21 ${SDL2_INCLUDE_DIR}
22 src
23 vendor
24)
25
26add_executable(Ether
27 src/main.cpp
28 vendor/fov.c
29)
30
31set_property(TARGET Ether PROPERTY CXX_STANDARD 17)
32set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON)
33target_link_libraries(Ether ${ALL_LIBS})