Win32: Add VERSIONINFO resource to GLFW DLL

This will let people see the API version in the Explorer property box.
This commit is contained in:
Camilla Löwy
2019-12-11 19:09:59 +01:00
parent 7e03bce138
commit 2551829f75
3 changed files with 36 additions and 0 deletions
+5
View File
@@ -72,6 +72,11 @@ if (_GLFW_X11 OR _GLFW_WAYLAND)
endif()
endif()
if (WIN32 AND BUILD_SHARED_LIBS)
configure_file(glfw.rc.in glfw.rc @ONLY)
set(glfw_SOURCES ${glfw_SOURCES} "${CMAKE_CURRENT_BINARY_DIR}/glfw.rc")
endif()
if (APPLE)
# For some reason CMake didn't know about .m until version 3.16
set_source_files_properties(cocoa_init.m cocoa_joystick.m cocoa_monitor.m