Commit Graph

26 Commits

Author SHA1 Message Date
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
omniavinco
dac0614780 Add Cmake option - ONLY_LIBS 2013-05-25 14:34:35 +09:00
omniavinco
5408d71c61 CMakeLists.txt & glew source(2013.5.24) 2013-05-24 23:58:38 +09:00