2022-07-08 04:25:01 +00:00
|
|
|
project(glfw)
|
|
|
|
|
|
|
|
# Silence Warnings
|
|
|
|
add_compile_options(-w)
|
|
|
|
|
|
|
|
## GLFW
|
|
|
|
|
|
|
|
# Download
|
|
|
|
set(GLFW_BUILD_EXAMPLES FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_TESTS FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_DOCS FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_INSTALL FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_WIN32 FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_COCOA FALSE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_X11 TRUE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_WAYLAND TRUE CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_LIBRARY_TYPE "SHARED" CACHE BOOL "" FORCE)
|
2024-01-20 07:10:18 +00:00
|
|
|
set(MESSAGE_QUIET TRUE)
|
2022-07-08 04:25:01 +00:00
|
|
|
add_subdirectory(src EXCLUDE_FROM_ALL)
|
2024-01-20 07:10:18 +00:00
|
|
|
unset(MESSAGE_QUIET)
|
2022-07-08 04:25:01 +00:00
|
|
|
|
|
|
|
# Install
|
2024-11-20 00:57:43 +00:00
|
|
|
setup_library(glfw TRUE FALSE)
|
2022-07-13 20:46:33 +00:00
|
|
|
|
|
|
|
# License
|
2024-11-20 03:48:50 +00:00
|
|
|
install(FILES src/LICENSE.md DESTINATION "${MCPI_LEGAL_DIR}/GLFW")
|