mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 00:51:36 +08:00
a72a3d5459
* [physfs] cleanup * Fix symbol names * Add usage doc * [cmake-user] Test PhysFS * Add wrapper * Restore msbuild for uwp
11 lines
399 B
Plaintext
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})
|