cmake_minimum_required(VERSION 3.7)
project(HelloSDL)

#set(CMAKE_MODULE_PATH "/Users/nathan/Programmation/ressources/CMake")
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})

find_package(SDL2)
find_package(SDL2_image)
include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR})

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp texturer.h texturer.cpp Input.h Input.cpp)
add_executable(HelloSDL ${SOURCE_FILES})

target_link_libraries(HelloSDL ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY})