cmake_minimum_required(VERSION 3.31)
project(directX11Learn)

set(CMAKE_CXX_STANDARD 20)

# WIN32 here is necessary! it creates the graphic window which use WinMain as entry point not simple "main" function
add_executable(directX11Learn WIN32
        main.cpp
        WindowsMessageMap.h
        WindowsMessageMap.cpp)


# this command tells the linker which lib file is connected to the program
target_link_libraries(directX11Learn PRIVATE
    d3d11.lib
    dxgi.lib
    d3dcompiler.lib)