-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop fetching the glfw package by default
- Loading branch information
Showing
6 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,6 @@ Branch: vulkan-sdk-1.3.268 | |
[mimalloc] | ||
Branch: v2.1.2 | ||
|
||
[glfw] | ||
Branch: 3.3.8 | ||
|
||
[vma] | ||
Branch: master | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Locate the glfw3 library | ||
# | ||
# This module defines the following variables: | ||
# | ||
# GLFW3_LIBRARY the name of the library; | ||
# GLFW3_INCLUDE_DIR where to find glfw include files. | ||
# GLFW3_FOUND true if both the GLFW3_LIBRARY and GLFW3_INCLUDE_DIR have been found. | ||
# | ||
# To help locate the library and include file, you can define a | ||
# variable called GLFW3_ROOT which points to the root of the glfw library | ||
# installation. | ||
# | ||
# default search dirs | ||
# | ||
# Cmake file from: https://github.com/daw42/glslcookbook | ||
|
||
set( _glfw3_HEADER_SEARCH_DIRS | ||
"/usr/include" | ||
"/usr/local/include" | ||
"${CMAKE_SOURCE_DIR}/includes" | ||
"C:/Program Files (x86)/glfw/include" ) | ||
set( _glfw3_LIB_SEARCH_DIRS | ||
"/usr/lib" | ||
"/usr/local/lib" | ||
"${CMAKE_SOURCE_DIR}/lib" | ||
"C:/Program Files (x86)/glfw/lib-msvc110" ) | ||
|
||
# Check environment for root search directory | ||
set( _glfw3_ENV_ROOT $ENV{GLFW3_ROOT} ) | ||
if( NOT GLFW3_ROOT AND _glfw3_ENV_ROOT ) | ||
set(GLFW3_ROOT ${_glfw3_ENV_ROOT} ) | ||
endif() | ||
|
||
# Put user specified location at beginning of search | ||
if( GLFW3_ROOT ) | ||
list( INSERT _glfw3_HEADER_SEARCH_DIRS 0 "${GLFW3_ROOT}/include" ) | ||
list( INSERT _glfw3_LIB_SEARCH_DIRS 0 "${GLFW3_ROOT}/lib" ) | ||
endif() | ||
|
||
# Search for the header | ||
FIND_PATH(GLFW3_INCLUDE_DIR "GLFW/glfw3.h" | ||
PATHS ${_glfw3_HEADER_SEARCH_DIRS} ) | ||
|
||
# Search for the library | ||
FIND_LIBRARY(GLFW3_LIBRARY NAMES glfw3 glfw | ||
PATHS ${_glfw3_LIB_SEARCH_DIRS} ) | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLFW3 DEFAULT_MSG | ||
GLFW3_LIBRARY GLFW3_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters