2023-03-09 14:21:49 +03:00
|
|
|
#
|
|
|
|
# CMakeLists.txt to build a dummy Cairo library for the FLTK project using CMake
|
|
|
|
#
|
|
|
|
# Copyright 1998-2023 by Bill Spitzak and others.
|
|
|
|
#
|
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/COPYING.php
|
|
|
|
#
|
|
|
|
# Please see the following page on how to report bugs and issues:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/bugs.php
|
|
|
|
#
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Note: since FLTK 1.4.0 Fl_Cairo_Window support [1] is included in
|
|
|
|
# libfltk and libfltk_cairo is no longer necessary. This directory is
|
|
|
|
# used to build an "empty" dummy library for backwards compatibility,
|
|
|
|
# just in case users expect it to exist.
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# The entire 'cairo' folder will be removed in a later FLTK release.
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
# Build dummy fltk_cairo library
|
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
set(cairo_SRCS cairo_dummy.c)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
fl_add_library(fltk_cairo STATIC "${cairo_SRCS}")
|
|
|
|
target_link_libraries(fltk_cairo PUBLIC fltk::fltk)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
# Build shared dummy library(optional)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
if(FLTK_BUILD_SHARED_LIBS)
|
2021-07-12 20:26:28 +03:00
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
fl_add_library(fltk_cairo SHARED "${cairo_SRCS}")
|
|
|
|
target_link_libraries(fltk_cairo-shared PUBLIC fltk::fltk-shared)
|
2021-07-12 20:26:28 +03:00
|
|
|
|
2024-02-07 20:30:11 +03:00
|
|
|
endif(FLTK_BUILD_SHARED_LIBS)
|
|
|
|
|
|
|
|
set(FLTK_LIBRARIES ${FLTK_LIBRARIES} PARENT_SCOPE)
|
|
|
|
set(FLTK_LIBRARIES_SHARED ${FLTK_LIBRARIES_SHARED} PARENT_SCOPE)
|