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") find_package(SDL2 REQUIRED) find_package(SDL2_Image REQUIRED) find_package(SDL2_TTF REQUIRED) set(ALL_LIBS ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARIES} ${SDL2_TTF_LIBRARIES} fmodstudio fmod ) include_directories( ${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIRS} ${SDL2_TTF_INCLUDE_DIRS} src vendor vendor/fmod/inc ) link_directories( vendor/fmod/lib ) add_executable(Ether src/main.cpp src/renderer.cpp src/muxer.cpp src/animation.cpp src/game.cpp src/sign.cpp src/menu.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})