From 787c67afea179735f2fea12f95ad04c80b3717e7 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 12 Jul 2021 19:26:28 +0200 Subject: macOS: fix fltk_cairo shared library (issue #250) - add missing dependencies to build the shared libfltk_cairo(.dylib) - remove incorrect dependency on cairo from libfltk - add cairo_test-shared demo (linked with shared libs) --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9c602ce7a..33df73a62 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -147,7 +147,7 @@ endif (OPENGL_FOUND) # Cairo demo - must also be built w/o Cairo (displays a message box) if (FLTK_HAVE_CAIRO) - CREATE_EXAMPLE (cairo_test cairo_test.cxx "fltk_cairo;fltk") + CREATE_EXAMPLE (cairo_test cairo_test.cxx "fltk_cairo;fltk;cairo") else () CREATE_EXAMPLE (cairo_test cairo_test.cxx fltk) endif (FLTK_HAVE_CAIRO) @@ -206,6 +206,10 @@ if (OPTION_BUILD_SHARED_LIBS) CREATE_EXAMPLE (shape-shared shape.cxx "fltk_gl_SHARED;fltk_SHARED;${OPENGL_LIBRARIES}") endif (OPENGL_FOUND) + if (FLTK_HAVE_CAIRO) + CREATE_EXAMPLE (cairo_test-shared cairo_test.cxx "fltk_cairo_SHARED;fltk_SHARED;cairo") + endif () + endif (MSVC) # (not MSVC) endif (OPTION_BUILD_SHARED_LIBS) -- cgit v1.2.3