Commit Graph

1005 Commits

Author SHA1 Message Date
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
Nigel Stewart a4a87f9466 Add clang Linux configuraiton. 2015-06-18 21:17:44 +10:00
Nigel Stewart d932bc3eca Fixup: glxewContextInit now needed for glewinfo purposes. 2015-06-18 20:45:29 +10:00
Nigel Stewart fda28dbfb0 [CoreSupport] Tab indentation for perl scripts 2015-06-13 19:44:35 +10:00
Nigel Stewart fc84055808 Merge pull request #43 from nigels-com/glewinfo-core
glewinfo command-line support for GL context version, profile and flags
2015-06-13 10:57:38 +10:00
Nigel Stewart 0c19148d6a glew_utils is no longer used, removing. 2015-06-13 10:36:07 +10:00
Nigel Stewart 0e88d39f4a Leave extraneous #ifdef blocks 2015-06-13 10:18:41 +10:00
Nigel Stewart 49eafff105 Use -ansi -pedantic compilation flags for Linux build. 2015-06-13 10:00:42 +10:00
Nigel Stewart 044b9ff14c Add -ansi -pedantic compilation flags for Mac build, as extra diagnostic information. 2015-06-13 10:00:18 +10:00
Nigel Stewart 9580ab4226 [CoreSupport] Whitespace fixup for make_def_var.pl 2015-06-13 09:59:38 +10:00
Nigel Stewart e943e3c91c Merge pull request #45 from tamaskenez/cmake-install-headers
cmake: install header files
2015-06-10 19:06:56 +10: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
Nigel Stewart 211bf29181 [CoreSupport] glewinfo profiles/flags refinement - commandline profile and flags as strings. 2015-05-29 20:45:19 +10:00
Nigel Stewart 0720521034 [CoreSupport] glewinfo profiles/flags documentation breadcrumbs. 2015-05-29 20:29:08 +10:00
Nigel Stewart 60b0fc5c05 [CoreSupport] Mac OS X support for glewinfo GL version/profiles/flags. 2015-05-29 20:18:22 +10:00
Matthias Bentrup 2d0899283f Extend glewinfo to request specific GL versions/profiles/flags. 2015-05-29 20:18:16 +10:00
Nigel Stewart 7c046e2307 For github pull request #33 - GLEW version in glew.h
Allow for tools to extract the GLEW version from glew.h directly.
No functional change for C API.
See: https://github.com/nigels-com/glew/pull/33/files
2015-03-29 11:43:56 +10:00
Nigel Stewart 06430b007b First try AR, then try LIBTOOL... 2015-03-26 19:52:10 +10:00
Nigel Stewart 1fed499560 Merge pull request #35 from BastiaanOlij/master
Changing over makefiles so LDFLAGS.STATIC is used. Also added makefile.d...
2015-03-26 19:34:41 +10:00
BastiaanOlij aee8b6ff69 Renamed ARFLAGS.STATIC to simply ARFLAGS 2015-03-26 13:24:03 +11:00
BastiaanOlij 69cbc3532f Changed approach to be slightly more resilient to regression issues 2015-03-23 21:16:49 +11:00
Nigel Stewart 573eeabd8e [Mac] Migrate glewinfo on Mac from AGL to CGL, with the possibility of running in (core) OpenGL 3.2 mode. 2015-03-20 20:23:04 +10:00
Nigel Stewart cc6695b60c Merge pull request #34 from xantares/master
fix cmake build
2015-03-20 20:15:07 +10:00
BastiaanOlij 0c9ab41431 Changing over makefiles so LDFLAGS.STATIC is used. Also added makefile.darwin-universal for creating a universal static library that can be used properly. 2015-03-15 18:55:29 +11: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
Nigel Stewart 40513e0bb4 Merge github pull request #28
https://github.com/nigels-com/glew/pull/28
2015-02-19 21:11:24 +10:00
xantares ed4fe8ebc4 set project name to glew 2015-02-09 16:06:11 +01:00
xantares a5f0612349 build static & shared 2015-02-06 09:33:39 +01:00
Nigel Stewart 6722500d95 Merge pull request #27 from stopiccot/fixing_gitattributes
Fixing gitattribute
2015-02-06 13:41:43 +10:00
xantares b1822129a0 Update CMakeLists.txt
X11 are part of OPENGL_LIBRARIES
2015-02-04 21:45:12 +01:00
xantares e6cd59d9b5 rewrite cmake infrastructure 2015-02-04 21:27:12 +01:00
stopiccot 40fc2a9823 Fixing gitattribute 2015-01-30 01:34:39 +03:00
Nigel Stewart 9fedd9e053 Bump version to 1.12.0, updated documentation. 2015-01-24 22:45:29 +10:00
Nigel Stewart 138a0b42f4 Update config.guess from http://git.savannah.gnu.org/cgit/config.git/plain/config.guess 2015-01-24 17:38:29 +10:00
Nigel Stewart b52fa4654d Bump copyright year to 2015 2015-01-24 17:21:59 +10:00
Nigel Stewart c3e6ce6b61 Sourceforge Bug 253 - CFLAGS for Solaris need PIC specified 2015-01-24 17:08:19 +10:00
Nigel Stewart e37f6728fe Sourceforge Bug 263 - Fixed include path for pkg-config 2015-01-24 17:03:51 +10:00
Nigel Stewart 12f15cf2a6 Merge pull request #23 from goldhoorn/master
Corrected package_config file.
2015-01-24 16:51:58 +10:00
Carsten Neumann e6a117de9b add missing glGetGraphicsResetStatus function to VERSION_4_5
This function is in OpenGL 4.5, but not part of GL_KHR_robustness
extension - it is in GL_ARB_robustness, but there it has the ARB suffix.
2015-01-07 19:54:05 +10:00
Nigel Stewart 5eaf283c70 #264 FreeBSD: missing -fPIC when linking libglew 2015-01-07 19:43:34 +10:00
Nigel Stewart cbe15308bf Merge remote-tracking branch 'improve_config' 2014-12-11 21:43:48 +10:00
Nigel Stewart f1eae16bb8 Sourceforge bug 260 Missing defines: GL_COPY_{READ|WRITE}_BUFFER_BINDING 2014-12-11 19:34:52 +10:00
Nigel Stewart 404df2ee70 cmake build on Linux needs to link X11 2014-12-01 20:13:15 +10:00
Matthias Goldhoorn daf318d02f Corrected package_config file.
On multiarch the librarys got installed in lib64.
Therefore take the libpath from the makefile and not assuming the
lib directory from the install dir
2014-11-12 15:50:46 +01:00
Togo Nishigaki 8b138bcd46 added CMakeLists.txt 2014-11-09 22:25:45 +09:00