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) set(MESSAGE_QUIET TRUE) add_subdirectory(src EXCLUDE_FROM_ALL) unset(MESSAGE_QUIET) # Install setup_library(glfw TRUE FALSE) # License install(FILES src/LICENSE.md DESTINATION "${MCPI_LEGAL_DIR}/GLFW")