diff --git a/README.md b/README.md index 9c89385..d944f77 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Snapshots may contain new features, bug-fixes or new OpenGL extensions ahead of *GLEW 2.0.0 release candidate, Core context, EGL support, no MX* [glew-20160131.tgz](http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20160131.tgz/download) -*GLEW 2.0.0 release candidate: Core context support, MX discontinued* +*GLEW 2.0.0 release candidate: Core context support, no MX* [glew-20151117.tgz](http://sourceforge.net/projects/glew/files/glew/snapshots/glew-20151117.tgz/download) @@ -72,6 +72,23 @@ RedHat/CentOS/Fedora: `$ sudo yum install libXmu-devel libXi-devel libGL-devel g $ cmake ./cmake $ make -j4 +| Target | Description | +| ---------- | ----------- | +| glew | Build the glew shared library. | +| glew_s | Build the glew static library. | +| glewinfo | Build the `glewinfo` executable (requires `BUILD_UTILS` to be `ON`). | +| visualinfo | Build the `visualinfo` executable (requires `BUILD_UTILS` to be `ON`). | +| install | Install all enabled targets into `CMAKE_INSTALL_PREFIX`. | +| clean | Clean up build artifacts. | +| all | Build all enabled targets (default target). | + +| Variables | Description | +| --------------- | ----------- | +| BUILD_UTILS | Build the `glewinfo` and `visualinfo` executables. | +| GLEW_REGAL | Build in Regal mode. | +| GLEW_OSMESA | Build in off-screen Mesa mode. | +| BUILD_FRAMEWORK | Build as MacOSX Framework. Setting `CMAKE_INSTALL_PREFIX` to `/Library/Frameworks` is recommended. | + ### Windows #### Visual Studio diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index 5388b18..ef1a564 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -149,7 +149,7 @@ install ( TARGETS ${targets_to_install} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - FRAMEWORK DESTINATION lib${LIB_SUFFIX} + FRAMEWORK DESTINATION ${CMAKE_INSTALL_PREFIX} ) if (BUILD_UTILS) @@ -178,10 +178,9 @@ if (BUILD_UTILS) endif () set (prefix ${CMAKE_INSTALL_PREFIX}) -set (exec_prefix \${prefix}) -set (libdir \${prefix}/lib) -set (includedir \${prefix}/include) -set (includedir \${prefix}/include) +set (exec_prefix ${CMAKE_INSTALL_PREFIX}) +set (libdir ${CMAKE_INSTALL_FULL_LIBDIR}) +set (includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR}) set (version ${GLEW_VERSION}) set (libname ${GLEW_LIB_NAME}) set (cflags)