cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

project(SFML_Learning LANGUAGES CXX C)

find_package(SFML 2.5 COMPONENTS graphics audio network REQUIRED)

if(NOT SFML_FOUND)
    message(SEND_ERROR "CRITICAL ERROR :: SFML IS NOT INSTALLED!")
    return()    
endif()

set(EXECUTABLE Application.cpp)

include_directories(Include)

add_executable(Application ${EXECUTABLE})

add_subdirectory(Core)

target_link_libraries(Application Window sfml-system sfml-graphics sfml-audio sfml-network)