cmake_minimum_required(VERSION 3.28)
project(oatmeal)
set(CMAKE_CXX_STANDARD 23)

add_executable(basicGLFWWindow "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")
target_include_directories(basicGLFWWindow PRIVATE oatmeal SharedUtils)
target_link_libraries(basicGLFWWindow oatmeal SharedUtils)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    set_target_properties(basicGLFWWindow PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Debug/")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Release")
    set_target_properties(basicGLFWWindow PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Release/")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
    set_target_properties(basicGLFWWindow PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Relwithdeb/")
endif()

