Commit Graph

14 Commits

Author SHA1 Message Date
Wes Tarro 5efdbaefc8 Makes GLEW truly independent of C runtime library on Windows to prevent
any issues with mixing compilers and library versions. The Visual Studio
Projects need some touching up to get all of the settings synced up for all
of the build variants.
2016-02-05 02:53:25 -05:00
Nigel Stewart 9297c604ca For cmake 3.4 - link X11 libs for glewinfo and visualinfo unless not available, or GLEW_OSMESA mode. 2016-01-08 23:25:46 +10:00
Nigel Stewart a4aa9b2717 Remove MX support due to the complexity of supporting both MX and Core contexts 2015-12-06 12:49:24 +10:00
Gyusun Yeom c5c60068f7 Add ".rc" files to each libraries and executables for Windows build 2015-10-10 11:40:47 +10:00
Nigel Stewart fd49b2baff Touch-ups for GLEW_OSMESA build support 2015-10-10 11:33:40 +10:00
Nigel Stewart 4718d42dde Regal-mode support for cmake build 2015-10-10 11:22:12 +10:00
Tamas Kenez d2e6823451 cmake: install config-module
Installs a config module if CMake verion >= 2.8.12.
The config-module creates the import library targets
built in the project (glew, glew_s, glewmx, glewmx_s)
but in accordance with the FindGLEW module shipped with
CMake, it also creates GLEW::GLEW and GLEW::GLEWMX.

GLEW::GLEW and GLEW::GLEWMX will be simply copies of
glew/glewmx or glew_s/glewmx_s. If both versions are
available they alias the shared versions.

The default behaviour can be changed either when installing
or when using the package:

- Set BUILD_SHARED_LIBS to OFF or ON when building and
  installing GLEW. This controls which libraries
  (shared or static) will be installed (and not which
  will be built).
- Set GLEW_USE_STATIC_LIBS to OFF or ON before calling
  `find_package(GLEW CONFIG REQUIRED)` to force
  the config-module to create GLEW::GLEW and GLEWMX
  as aliases to glew/glewmx or glew_s/glewmx_s

The script ./cmake-testbuild.sh is added to test the
CMake build and config-module. See instructions there.
2015-06-22 14:06:50 +02:00
Tamas Kenez 9b5d29be72 fix previous commit 2015-06-10 10:30:26 +02:00
Tamas Kenez 29a0ac0f47 cmake: install named headers instead of directory 2015-06-10 10:27:28 +02:00
Tamas Kenez e618ce2efb cmake: install header files 2015-06-09 14:59:57 +02:00
xantares b565769b01 fix compile definitions for glewmx too 2015-02-26 11:10:12 +00:00
xantares 516c9adf41 set right export definitions for shared/static libs 2015-02-26 11:00:25 +00:00
xantares 9a8e815da8 [cmake] get version from config/version 2015-02-26 10:54:39 +00:00
Nigel Stewart 4fcd4688a5 [cmake] Move cmake build into build/cmake to avoid collision with established GNUmake build system. 2015-02-19 21:45:56 +10:00