This library can be used to classify files according to magic number tests.
libmagic provides CMake targets:
find_package(unofficial-libmagic REQUIRED)
target_link_libraries(main PRIVATE unofficial::libmagic::libmagic)
The magic.mgc file can be accessed from the unofficial-libmagic_DICTIONARY variable.
v5.46#0
All
BSD-2-Clause
Manifest