summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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})