2022-03-10 02:23:41 +00:00
|
|
|
project(glfw)
|
|
|
|
|
|
|
|
# Silence Warnings
|
|
|
|
add_compile_options(-w)
|
|
|
|
|
|
|
|
## GLFW
|
|
|
|
|
|
|
|
# Download
|
2022-06-14 00:49:09 +00:00
|
|
|
set(BUILD_SHARED_LIBS FALSE CACHE BOOL "" FORCE)
|
|
|
|
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 "STATIC" CACHE BOOL "" FORCE)
|
2022-03-10 02:23:41 +00:00
|
|
|
add_subdirectory(src EXCLUDE_FROM_ALL)
|
|
|
|
|
|
|
|
# Ensure Build
|
|
|
|
add_custom_target(glfw-build ALL DEPENDS glfw)
|