Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
ea9dc4df
Commit
ea9dc4df
authored
Apr 14, 2016
by
Rashad Kanavath
Browse files
STYLE: fix indention
parent
840f3896
Changes
1
Hide whitespace changes
Inline
Side-by-side
SuperBuild/CMake/External_glfw.cmake
View file @
ea9dc4df
if
(
NOT __EXTERNAL_GLFW__
)
set
(
__EXTERNAL_GLFW__ 1
)
if
(
NOT __EXTERNAL_GLFW__
w
)
set
(
__EXTERNAL_GLFW__ 1
)
if
(
USE_SYSTEM_GLFW
)
message
(
STATUS
" Using glfw system version"
)
else
()
set
(
GLFW_DEPENDENCIES
)
set
(
GLFW_SB_BUILD_DIR
${
CMAKE_BINARY_DIR
}
/GLFW/build
)
set
(
GLFW_SB_SRC
${
CMAKE_BINARY_DIR
}
/GLFW/src/GLFW
)
if
(
USE_SYSTEM_GLFW
)
message
(
STATUS
" Using GLFW system version"
)
else
()
SETUP_SUPERBUILD
(
PROJECT GLFW
)
message
(
STATUS
" Using GLFW SuperBuild version"
)
ExternalProject_Add
(
GLFW
PREFIX GLFW
URL
"https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip"
URL_MD5 8023327bfe979b3fe735e449e2f54842
BINARY_DIR
${
GLFW_SB_BUILD_DIR
}
INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
ExternalProject_Add
(
GLFW
PREFIX GLFW
URL
"https://github.com/glfw/glfw/releases/download/3.1.2/glfw-3.1.2.zip"
URL_MD5 8023327bfe979b3fe735e449e2f54842
BINARY_DIR
${
GLFW_SB_BUILD_DIR
}
INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CMAKE_CACHE_ARGS
CMAKE_CACHE_ARGS
-DCMAKE_BUILD_TYPE:STRING=Release
-DBUILD_SHARED_LIBS:BOOL=ON
-DGLFW_BUILD_EXAMPLES:BOOL=OFF
-DGLFW_BUILD_DOCS:BOOL=OFF
-DGLFW_BUILD_TESTS:BOOL=OFF
-DCMAKE_INSTALL_PREFIX:PATH=
${
CMAKE_INSTALL_PREFIX
}
)
)
set
(
_SB_GLFW_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
set
(
_SB_GLFW_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libglfw.lib
)
elseif
(
UNIX
)
set
(
_SB_GLFW_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libglfw
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
set
(
_SB_GLFW_INCLUDE_DIR
${
SB_INSTALL_PREFIX
}
/include
)
if
(
WIN32
)
set
(
_SB_GLFW_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libglfw.lib
)
elseif
(
UNIX
)
set
(
_SB_GLFW_LIBRARY
${
SB_INSTALL_PREFIX
}
/lib/libglfw
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
message
(
STATUS
" Using glfw SuperBuild version"
)
endif
()
endif
()
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment