cmake_minimum_required(VERSION 4.2.1)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(include)
project(image_rasterizer LANGUAGES C)

set(SOURCES
	src/main.c
)

include(FetchContent)
FetchContent_Declare(PROCESSOR
	GIT_REPOSITORY git@moo:dmm/image_processor.git
	GIT_TAG main)
FetchContent_MakeAvailable(PROCESSOR)

add_executable(image_rasterizer ${SOURCES})
target_link_libraries(image_rasterizer PRIVATE PROCESSOR)

