27 lines
635 B
CMake
Raw Normal View History

project(glfw)
# Silence Warnings
add_compile_options(-w)
## GLFW
# Download
2024-11-24 17:42:36 -05:00
force_set(GLFW_BUILD_EXAMPLES FALSE BOOL)
force_set(GLFW_BUILD_TESTS FALSE BOOL)
force_set(GLFW_BUILD_DOCS FALSE BOOL)
force_set(GLFW_INSTALL FALSE BOOL)
force_set(GLFW_BUILD_WIN32 FALSE BOOL)
force_set(GLFW_BUILD_COCOA FALSE BOOL)
force_set(GLFW_BUILD_X11 TRUE BOOL)
force_set(GLFW_BUILD_WAYLAND TRUE BOOL)
force_set(GLFW_LIBRARY_TYPE "SHARED" STRING)
2024-01-20 02:10:18 -05:00
set(MESSAGE_QUIET TRUE)
add_subdirectory(src EXCLUDE_FROM_ALL)
2024-01-20 02:10:18 -05:00
unset(MESSAGE_QUIET)
# Install
2024-11-23 00:01:27 -05:00
setup_library(glfw TRUE TRUE)
2022-07-13 16:46:33 -04:00
# License
2024-11-19 22:48:50 -05:00
install(FILES src/LICENSE.md DESTINATION "${MCPI_LEGAL_DIR}/GLFW")