mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
Simplify examples/CMakeLists.txt (libcairo linkage)
Fl_Cairo_Window is included in fltk::fltk and libcairo is linked implicitly if FLTK was built with Cairo support.
This commit is contained in:
@@ -136,14 +136,8 @@ endforeach(src)
|
|||||||
# create example programs requiring cairo
|
# create example programs requiring cairo
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
if(FLTK_HAVE_CAIRO)
|
|
||||||
set(cairo_libs "fltk::fltk;cairo")
|
|
||||||
else()
|
|
||||||
set(cairo_libs "fltk::fltk")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
foreach(src ${CAIRO_SOURCES})
|
foreach(src ${CAIRO_SOURCES})
|
||||||
fl_create_example(${src} ${src}.cxx "${cairo_libs}")
|
fl_create_example(${src} ${src}.cxx fltk::fltk)
|
||||||
endforeach(src)
|
endforeach(src)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user