@ -46,6 +46,15 @@ include_directories(
@@ -46,6 +46,15 @@ include_directories(
$ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R }
)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# D e f i n e a d d i t i o n a l e x a m p l e p r o g r a m s f o r t e s t i n g , f o r i n s t a n c e :
# set ( extra_tests issue-276 str-1895 )
# U s e t h e s o u r c e f i l e t e s t / ' n a m e ' . c x x f o r e a c h a d d i t i o n a l p r o g r a m .
# T h e s e t e s t p r o g r a m s w i l l b e b u i l t w i t h i m a g e a n d G L l i b r a r i e s .
# L e a v e t h e v a r i a b l e ' e x t r a _ t e s t s ' e m p t y t o d i s a b l e e x t r a t e s t p r o g r a m s .
set ( extra_tests )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# A d d t h e A N D R O I D _ O K o p t i o n i f t h e e x a m p l e c a n b e c o m p i l e d f o r A n d r o i d
# a s w e l l a s f o r o t h e r p l a t f o r m s .
@ -134,6 +143,15 @@ CREATE_EXAMPLE (valuators valuators.fl fltk)
@@ -134,6 +143,15 @@ CREATE_EXAMPLE (valuators valuators.fl fltk)
CREATE_EXAMPLE ( unittests unittests.cxx fltk )
CREATE_EXAMPLE ( windowfocus windowfocus.cxx fltk )
# c r e a t e a d d i t i o n a l t e s t programs ( used by developers for testing )
if ( extra_tests )
# message ( "" )
foreach ( name ${ extra_tests } )
# message ( STATUS "Will build additional test program ${name}" )
create_example ( ${ name } ${ name } .cxx "fltk_images;fltk_gl;fltk" )
endforeach ( )
endif ( )
# O p e n G L d e m o s . . .
if ( OPENGL_FOUND )
CREATE_EXAMPLE ( CubeView "CubeMain.cxx;CubeView.cxx;CubeViewUI.fl" "fltk_gl;fltk" )