vcpkg/ports/libmagic/usage
Theodore Tsirpanis 16ee2ecb31
[libmagic] Add CMake config. (#35274)
* [libmagic] Add CMake config.

* Fix license information and add usage.

* Address PR feedback.
Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Set some missing properties.

* Fix location to import library.

* Update version database.
2023-12-01 02:21:55 -08:00

7 lines
244 B
Plaintext

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.