mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 16:17:50 +08:00
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})
|