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:
parent
193c5285cd
commit
036e0334dc
@ -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)
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user