reito b12243bd33
[Spout2] New Port (#30119)
* Add Spout2

* Add Spout2

* Disable UWP

* Fixup

* Disable ARM64

* Disable ARM64

* Fix cmake config

* Explain dx feature

* Fix

* vcpkg_check_features

* FEATURE_OPTIONS

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes
2023-03-15 10:48:09 -07:00

21 lines
846 B
Plaintext

spout2 provides CMake targets:
# Dynamic Linkage
find_package(Spout2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE Spout2::Spout)
# Static Linkage
find_package(Spout2 CONFIG REQUIRED)
target_link_libraries(main PRIVATE Spout2::Spout_static)
# SpoutLibrary
target_link_libraries(main PRIVATE Spout2::SpoutLibrary)
# SpoutDX
target_link_libraries(main PRIVATE Spout2::SpoutDX)
Note: SpoutDX (`dx` feature) is not essential to use DirectX in Spout... It is a sub-set of the
Spout SDK for applications using DirectX rather than OpenGL. It doesn't mean enabling
DirectX ability for Spout. See https://github.com/leadedge/Spout2/tree/master/SPOUTSDK
It is more likely: 'Use only DirectX to implement Spout, and remove all codes that need OpenGL'.