From f545cf0276e95c9dca33d36d1a0cfe3b4995473a Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 23 May 2018 21:28:29 -0400 Subject: somethign --- CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..3c629f5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required (VERSION 3.1) +project (Ether) + +set(CMAKE_BUILD_TYPE Debug) + +# Set directory to look for package helpers. +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Ether_SOURCE_DIR}/cmake") + +# Get dependencies. + +find_package(PkgConfig) +pkg_check_modules(GLFW REQUIRED glfw3) + +find_package(SDL2 REQUIRED) + +set(ALL_LIBS + ${SDL2_LIBRARY} +) + +include_directories( + ${SDL2_INCLUDE_DIR} + src + vendor +) + +add_executable(Ether + src/main.cpp + vendor/fov.c +) + +set_property(TARGET Ether PROPERTY CXX_STANDARD 17) +set_property(TARGET Ether PROPERTY CXX_STANDARD_REQUIRED ON) +target_link_libraries(Ether ${ALL_LIBS}) -- cgit 1.4.1