FetchContent_Declare (
	tinyfiledialogs
	GIT_REPOSITORY [[https://git.code.sf.net/p/tinyfiledialogs/code]]
	GIT_TAG [[fb228c5bcd7d0574d08b71b4fae84676328addaf]]
	GIT_SHALLOW ON
)

FetchContent_GetProperties (tinyfiledialogs)
if (NOT tinyfiledialogs_POPULATED)
	message (STATUS "Cloning tinyfiledialogs…")
	FetchContent_Populate (tinyfiledialogs)
endif ()

add_library( tinyfiledialogs::tinyfiledialogs INTERFACE IMPORTED)
set_target_properties(tinyfiledialogs::tinyfiledialogs PROPERTIES
	INTERFACE_INCLUDE_DIRECTORIES "${tinyfiledialogs_SOURCE_DIR}"
	INTERFACE_SOURCES "${tinyfiledialogs_SOURCE_DIR}/tinyfiledialogs.c"
)
