mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 03:19:19 +08:00
f3a1217662
* 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
10 lines
350 B
Plaintext
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)
|