summaryrefslogtreecommitdiff
path: root/libs/raylib/cmake/GlfwImport.cmake
diff options
context:
space:
mode:
authorLucaSas <sas.luca.alex@gmail.com>2021-11-04 16:21:01 +0200
committerLucaSas <sas.luca.alex@gmail.com>2021-11-04 16:21:01 +0200
commitdc4aea45b3956ae5b785fd7dc8d82d6ab347d22c (patch)
treef28cb388a14c4bd9da8f4b57b213eb1539fc5367 /libs/raylib/cmake/GlfwImport.cmake
parent4e34ae85948438f726a911c9dbb8616968a378a5 (diff)
downloadgamejam-slgj-2024-dc4aea45b3956ae5b785fd7dc8d82d6ab347d22c.tar.gz
gamejam-slgj-2024-dc4aea45b3956ae5b785fd7dc8d82d6ab347d22c.tar.bz2
gamejam-slgj-2024-dc4aea45b3956ae5b785fd7dc8d82d6ab347d22c.zip
Removed local raylib
Diffstat (limited to 'libs/raylib/cmake/GlfwImport.cmake')
-rw-r--r--libs/raylib/cmake/GlfwImport.cmake34
1 files changed, 0 insertions, 34 deletions
diff --git a/libs/raylib/cmake/GlfwImport.cmake b/libs/raylib/cmake/GlfwImport.cmake
deleted file mode 100644
index b740884..0000000
--- a/libs/raylib/cmake/GlfwImport.cmake
+++ /dev/null
@@ -1,34 +0,0 @@
-
-if(USE_EXTERNAL_GLFW STREQUAL "ON")
- find_package(glfw3 3.2.1 REQUIRED)
-elseif(USE_EXTERNAL_GLFW STREQUAL "IF_POSSIBLE")
- find_package(glfw3 3.2.1 QUIET)
-endif()
-if (glfw3_FOUND)
- set(LIBS_PRIVATE ${LIBS_PRIVATE} glfw)
-endif()
-
-# Explicitly check against "ON", because USE_EXTERNAL_GLFW is a tristate option
-# Also adding only on desktop (web also uses glfw but it is more limited and is added using an emcc linker flag)
-if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MATCHES "Desktop")
- MESSAGE(STATUS "Using raylib's GLFW")
- set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
- set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
- set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
- set(GLFW_INSTALL OFF CACHE BOOL "" FORCE)
- set(GLFW_USE_WAYLAND ${USE_WAYLAND} CACHE BOOL "" FORCE)
-
- set(WAS_SHARED ${BUILD_SHARED_LIBS})
- set(BUILD_SHARED_LIBS OFF CACHE BOOL " " FORCE)
-
- add_subdirectory(external/glfw)
-
- set(BUILD_SHARED_LIBS ${WAS_SHARED} CACHE BOOL " " FORCE)
- unset(WAS_SHARED)
-
- list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
- include_directories(BEFORE SYSTEM external/glfw/include)
-else()
- MESSAGE(STATUS "Using external GLFW")
- set(GLFW_PKG_DEPS glfw3)
-endif()