2010-04-06 02:33:58 +04:00
|
|
|
|
2021-07-12 20:26:28 +03:00
|
|
|
include_directories (${PKG_CAIRO_INCLUDE_DIRS})
|
2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
# source files for cairo
|
2021-07-12 20:26:28 +03:00
|
|
|
set (cairo_SRCS Fl_Cairo.cxx)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
#######################################################################
|
2021-07-12 20:26:28 +03:00
|
|
|
FL_ADD_LIBRARY (fltk_cairo STATIC "${cairo_SRCS}")
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|
2021-07-12 20:26:28 +03:00
|
|
|
# Build shared library (optional)
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2021-07-12 20:26:28 +03:00
|
|
|
if (OPTION_BUILD_SHARED_LIBS)
|
|
|
|
|
|
|
|
FL_ADD_LIBRARY (fltk_cairo SHARED "${cairo_SRCS}")
|
|
|
|
target_link_libraries (fltk_cairo_SHARED fltk_SHARED ${PKG_CAIRO_LIBRARIES})
|
2021-07-26 18:14:29 +03:00
|
|
|
fl_target_link_directories (fltk_cairo_SHARED PRIVATE "${PKG_CAIRO_LIBRARY_DIRS}")
|
2021-07-12 20:26:28 +03:00
|
|
|
|
|
|
|
endif (OPTION_BUILD_SHARED_LIBS)
|
|
|
|
|
2014-09-27 04:41:06 +04:00
|
|
|
#######################################################################
|