vcpkg/ports/freeglut/usage
Kai Pastor f3a1217662
[freeglut] Update to 3.4.0, cleanup (#28575)
* Add x11 dependency

* Update to 3.4.0, cleanup

* Document exported config

* Update versions

* Test (Free)GLUT cmake usage

* FindGLUT debug postfix support needs CMake 3.13

* Revise installed file names

* Fix typo
2022-12-29 10:34:27 -08:00

10 lines
350 B
Plaintext

freeglut provides CMake targets:
find_package(FreeGLUT CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:FreeGLUT::freeglut>,FreeGLUT::freeglut,FreeGLUT::freeglut_static>)
freeglut is compatible with built-in CMake targets:
find_package(GLUT REQUIRED)
target_link_libraries(main PRIVATE GLUT::GLUT)