fltk/CMake
Albrecht Schlosser bc63ea7629 CMake: improve linking OpenGL3 example programs (#959)
- Remove find_library(LIB_GLEW ...) from 'resources.cmake'

- Use the variable FLTK_GLEW_DIR to "find" a user supplied GLEW library
  for OpenGL3 example programs (examples/OpenGL3*.cxx).
  Both static and shared libs (DLLs) are supported, but the static
  library is preferred to avoid DLL dependencies.

- Define preprocessor macro 'GLEW_STATIC' by CMake compile definitions
  if and only if the static glew library (glew32s) was found and linked.
  The previous code defined 'GLEW_STATIC' unconditionally in the source
  code which led to undefined references if a shared lib (DLL) was used.
2024-05-13 15:19:27 +02:00
..
cmake_uninstall.cmake.in
compatibility.cmake
export.cmake
fl_add_library.cmake
fl_create_example.cmake
fl_debug_pkg.cmake
fl_debug_var.cmake
fl_summary.cmake
FLTK-Functions.cmake
FLTKConfig.cmake.in
install-symlinks.cmake.in
install.cmake
macOS-bundle-wrapper.in
MacOSXBundleInfo.plist.in
options.cmake
posixScandir.cxx
pthread_mutex_recursive.c
resources.cmake CMake: improve linking OpenGL3 example programs (#959) 2024-05-13 15:19:27 +02:00
setup.cmake
variables.cmake