cmake_minimum_required (VERSION 3.2)

set (CMAKE_CXX_STANDARD 11)

cmake_policy(SET CMP0072 NEW)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
project (attempt1)

# SDL2
find_package(SDL2 REQUIRED)
# find_package(OpenGL REQUIRED)

include_directories(${SDL2_INCLUDE_DIRS})
# include_directories(${OPENGL_INCLUDE_DIR})

message(STATUS "<<${SDL2_INCLUDE_DIRS}>>")
# message(STATUS "<<${OPENGL_INCLUDE_DIR}>>")

# Main Executable

add_definitions("-Wall -O0 -g")
#add_definitions("-Wall -Werror -O0 -g")
add_executable(attempt1 attempt1.cpp)
target_include_directories(attempt1 PUBLIC ${CMAKE_SOURCE_DIR}/src)

# Libraries
target_link_libraries(attempt1 ${SDL2_LIBRARIES})
# target_link_libraries(attempt1 ${OPENGL_LIBRARIES})

message(STATUS "<<${SDL2_LIBRARIES}>>")
# message(STATUS "<<${OPENGL_LIBRARIES}>>")
