|
|
@ -10,12 +10,12 @@ build applications that use GLFW, see @ref build_guide. |
|
|
|
|
|
|
|
|
|
|
|
@section compile_cmake Using CMake |
|
|
|
@section compile_cmake Using CMake |
|
|
|
|
|
|
|
|
|
|
|
GLFW uses [CMake](https://www.cmake.org/) to generate project files or makefiles |
|
|
|
GLFW uses [CMake](https://cmake.org/) to generate project files or makefiles |
|
|
|
for a particular development environment. If you are on a Unix-like system such |
|
|
|
for a particular development environment. If you are on a Unix-like system such |
|
|
|
as Linux or FreeBSD or have a package system like Fink, MacPorts, Cygwin or |
|
|
|
as Linux or FreeBSD or have a package system like Fink, MacPorts, Cygwin or |
|
|
|
Homebrew, you can install its CMake package. If not, you can download |
|
|
|
Homebrew, you can install its CMake package. If not, you can download |
|
|
|
installers for Windows and macOS from the |
|
|
|
installers for Windows and macOS from the |
|
|
|
[CMake website](https://www.cmake.org/). |
|
|
|
[CMake website](https://cmake.org/). |
|
|
|
|
|
|
|
|
|
|
|
@note CMake only generates project files or makefiles. It does not compile the |
|
|
|
@note CMake only generates project files or makefiles. It does not compile the |
|
|
|
actual GLFW library. To compile GLFW, first generate these files for your |
|
|
|
actual GLFW library. To compile GLFW, first generate these files for your |
|
|
@ -71,7 +71,7 @@ cmake -DCMAKE_TOOLCHAIN_FILE=CMake/x86_64-w64-mingw32.cmake . |
|
|
|
@endcode |
|
|
|
@endcode |
|
|
|
|
|
|
|
|
|
|
|
For more details see the article |
|
|
|
For more details see the article |
|
|
|
[CMake Cross Compiling](https://www.paraview.org/Wiki/CMake_Cross_Compiling) on |
|
|
|
[CMake Cross Compiling](https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling) on |
|
|
|
the CMake wiki. |
|
|
|
the CMake wiki. |
|
|
|
|
|
|
|
|
|
|
|
Once you have this set up, move on to @ref compile_generate. |
|
|
|
Once you have this set up, move on to @ref compile_generate. |
|
|
|