vcpkg/ports/physfs/usage
Kai Pastor a72a3d5459
[physfs] Cleanup, fix linkage and usage issues (#28787)
* [physfs] cleanup

* Fix symbol names

* Add usage doc

* [cmake-user] Test PhysFS

* Add wrapper

* Restore msbuild for uwp
2023-01-09 01:19:59 -08:00

11 lines
399 B
Plaintext

physfs provides CMake targets:
find_package(PhysFS CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:PhysFS::PhysFS>,PhysFS::PhysFS,PhysFS::PhysFS-static>)
physfs is compatible with built-in CMake targets:
find_package(PhysFS REQUIRED)
target_include_directories(main PRIVATE ${PHYSFS_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${PHYSFS_LIBRARY})