Commit Graph

52 Commits

Author SHA1 Message Date
Wohlstand bfe27f1ed1 CMake: Fixed minimal version warning on recent CMake
```
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
```
2023-08-23 01:03:03 +03:00
Wohlstand 91cfa6a5c9
CMake: Fixed symbolic link for builds with a debug postfix 2023-06-21 03:10:16 +03:00
Or Dagmi f266584c9a
Fixing test fs case sensitivity garbage files in the source dir (#61)
* Fixing test fs case sensitivity minor issue where files where not created in the CMAKE_BINARY_DIR

---------

Co-authored-by: DiGMi <digmi@convexum.com>
2023-02-27 21:00:25 +09:00
James Perlman d9504ce13b Use CMP0077
Thanks so much for making this project!  I'm using CMake 3.24+, and I was getting some errors like in [this issue (zephyr/26142)](https://github.com/zephyrproject-rtos/zephyr/issues/26142), and fixed them using CMP0077 - Did I do this correctly?
2023-02-22 16:23:54 -08:00
Gyusun Yeom 19ecc02312 Fix error on case insensitive fs 2023-02-19 13:09:58 +09:00
Gyusun Yeom 1a5db5d19b Fix configure error on non-GLVND linux environment 2023-02-19 13:09:58 +09:00
Gyusun Yeom 442d56d47d Fix build for non-glvnd 2021-11-14 17:09:45 +09:00
Gyusun Yeom 6940c54fc1 Support off-screen mode 2021-11-14 17:09:44 +09:00
Gyusun Yeom a8ef112236
Merge pull request #45 from Perlmint/fix/mingw 2021-03-24 23:00:34 +09:00
Toby Bell e2b4a36751 Silence warning for policy CMP0042
CMake policy CMP0042 affects whether @rpath is used in the install path for
dynamic libraries on macOS. It was introduced in CMake 3.0. If the policy is
not explicitly set, CMake uses OLD behavior and emits a warning.

This commit explicitly sets NEW behavior in order to silence the warning and
adopt the preferred behavior by CMake. This uses @rpath instead of @loader_path
in install names.

Documentation for policy CMP0042:

https://cmake.org/cmake/help/latest/policy/CMP0042.html
2021-03-05 18:49:38 -08:00
Gyusun Yeom 78f10dd0e0 Fix shared library build for mingw 2021-03-05 22:37:01 +09:00
Gyusun Yeom af5eac1089 Test with old cmake, Windows & macOS 2021-02-09 21:35:31 +09:00
Gyusun Yeom e983f5e0ee [Fix #38] [Fix #41] Fix install symbolic link 2021-02-09 21:31:26 +09:00
Gyusun Yeom 5cc3b4b8a8 [Fix #39] Fix CMP0048 issue 2021-02-09 21:31:25 +09:00
Gyusun Yeom 67ff18e2ee [Fix #40] Fix non-GLVND, non-namespaced package 2021-02-09 21:31:25 +09:00
Gyusun Yeom 81b97ab31e Use POST_BUILD script 2021-02-06 16:04:38 +09:00
Gyusun Yeom c4936e08b7 Install libGLEW symbolic links 2021-02-04 22:10:43 +09:00
Gyusun Yeom a79115599b Modernize cmake 2021-01-03 15:11:28 +09:00
Gyusun Yeom 397f383c53 Fix include directory properly for install 2020-12-29 21:05:28 +09:00
Gyusun Yeom 430a36d2b8 Export cmake config & use proper include directory for install
Close #30

Thanks Lanza<nathan@lanza.io>
2020-12-29 20:56:03 +09:00
Gyusun Yeom 9f3df6c128 Prevent output name collision 2020-12-29 20:56:03 +09:00
Gyusun Yeom 980ccfe56d Fix #29 Use proper output directory 2020-12-29 19:56:22 +09:00
Gyusun Yeom 3900ff84b4 Fix #32 Drop support too old cmake version 2020-12-29 19:52:36 +09:00
Gyusun Yeom 669ca8dda9 Fix #31 Handle cmake warning about CMP0072 2020-12-29 19:51:23 +09:00
hgs3 a8b341554f
Mark GLEW_BUILD PRIVATE to not affect consumers using add_subdirectory. 2020-08-11 17:46:31 -05:00
Gyusun Yeom c4c1fd4fec
Remove single/multi context option - deprecated
details in #27
2020-05-12 14:39:19 +09:00
Gyusun Yeom 4f2237a265 Generate pkg-config file 2019-10-09 20:40:50 +09:00
Gyusun Yeom cc5cfff738 Cleanup CMakeLists 2019-10-09 20:40:25 +09:00
Bluenaxela 371895de42
Add proper support for static builds on WIN32 2019-09-18 22:40:54 +09:00
ArthurSonzogni 8c42082242 Fix cmake error on Linux "no LIBRARY DESTINATION"
On Linux, cmake gives the error:
~~~bash
CMake Error at CMakeLists.txt:79 (INSTALL):
INSTALL TARGETS given no LIBRARY DESTINATION for shared library target
"libglew_shared".

CMake Error at CMakeLists.txt:94 (INSTALL):
INSTALL TARGETS given no LIBRARY DESTINATION for shared library target
"libglewmx_shared".

-- Configuring incomplete, errors occurred!
~~~

This bug was caused by the merge:
e4de8a77a1

Containing:
* Update library install directories in Cmake
  commit 5a7232fc53

* Install directories set in single statement
  commit def19e7de4

The cause is that RUNTIME DESTINATION is now defined (for Windows), but
not LIBRARY DESTINATION (for Linux).

See issue: https://github.com/Perlmint/glew-cmake/issues/17
2019-06-11 21:37:30 +09:00
GekkieHenkie 5a7232fc53
Install directories set in single statement 2019-04-09 23:59:48 +02:00
GekkieHenkie def19e7de4
Update library install directories in Cmake
Currently (well, at least on Windows), the created DLL files aren't installed to the correct directory after a build. The DLL files are installed to the 'lib' directory. Which actually is the place for the static library or the shared library's symbols file (.lib).
The shared library runtimes should be installed to the 'bin' output directory, as proposed in this PR.

See the ```CONFIGURATIONS``` option in [Install command introduction in the CMake manual](https://cmake.org/cmake/help/v3.14/command/install.html#introduction) for an example.

It's considered best practice and follows convention as used in other notable libraries as libpng, libogg/vorbis, freetype, zlib, tinyxml, etc, to install the runtime output in the 'bin' directory.
2019-04-09 23:22:16 +02:00
Cong Wang ae2050b432 public include directory 2017-03-02 23:48:35 +08:00
Gyusun Yeom 12670f2b4a Add space before close-parenthesis 2015-10-07 14:23:34 +09:00
Gyusun Yeom 19bd2de9e3 Add sigle-context/multi-context version build option 2015-10-07 14:21:05 +09:00
omniavinco ab43be0f06 Tidy CMakeLists.txt
merge duplicated condition check
2014-08-29 22:52:36 +09:00
omniavinco 3a73d80be4 Add PLATFORM_SPECIFIC_LIBRARIES to link platform specific libraries 2014-08-29 22:45:52 +09:00
omniavinco 1672429f22 Use Cmake dependency chain 2014-08-29 22:43:24 +09:00
Danny Angelo Carminati Grein 62c39ba638 Add missing libraries on linux 2014-08-25 22:49:21 -04:00
Gyusun b4f7c06310 Add rc files for any msvc(remove msvc version check) 2014-08-17 02:05:12 +09:00
Gyu-sun Youm ede8f3b946 Merge pull request #4 from karlssonper/master
Added install target
2014-08-16 06:59:37 +09:00
per a9ceeeedeb style mismatch 2014-08-13 09:50:43 +02:00
per 9ac6bc4ebb style mismatch 2014-08-13 09:49:51 +02:00
per 17fa396828 Added install target 2014-08-11 23:56:04 +02:00
Ebrahim Byagowi 5dcb9332da Use CMAKE_BINARY_DIR instead CMAKE_SOURCE_DIR 2014-08-09 22:33:09 +04:30
Andy Stanton 0e35fbec4e add options 2014-04-22 20:55:22 +01:00
Andrew McMahon f96a4f3ddf Upgraded to support VC 12 2014-02-26 23:05:11 +00:00
Gyu-sun Youm f4f7759f3a link OpenGL to libglew_shared 2013-08-31 23:42:27 +09:00
Gyu-sun Youm dcd588d402 Change library output name 2013-05-26 00:31:05 +09:00
Gyu-sun Youm e080154dc4 Windows support
* some definitions
* rc file (except VS11)
2013-05-25 22:26:51 +09:00