2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
set(CPPFILES
|
2005-05-13 07:05:08 +04:00
|
|
|
CodeEditor.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Function_Type.cxx
|
|
|
|
Fl_Group_Type.cxx
|
2005-05-13 07:05:08 +04:00
|
|
|
Fl_Menu_Type.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Type.cxx
|
2005-05-13 07:05:08 +04:00
|
|
|
Fl_Widget_Type.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Window_Type.cxx
|
|
|
|
Fluid_Image.cxx
|
2005-05-13 07:05:08 +04:00
|
|
|
about_panel.cxx
|
|
|
|
align_widget.cxx
|
|
|
|
alignment_panel.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
code.cxx
|
|
|
|
factory.cxx
|
|
|
|
file.cxx
|
2005-05-13 07:05:08 +04:00
|
|
|
fluid.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
function_panel.cxx
|
2005-05-13 07:05:08 +04:00
|
|
|
template_panel.cxx
|
|
|
|
undo.cxx
|
|
|
|
widget_panel.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
)
|
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
add_executable(fluid ${CPPFILES})
|
|
|
|
target_link_libraries(fluid fltk fltk_images fltk_forms)
|
|
|
|
|
|
|
|
# link in optional libraries
|
2011-01-06 13:24:58 +03:00
|
|
|
if(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
target_link_libraries(fluid fltk_cairo)
|
2011-01-06 13:24:58 +03:00
|
|
|
endif(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
if(FLTK_USE_GL)
|
|
|
|
target_link_libraries(fluid fltk_gl)
|
|
|
|
target_link_libraries(fluid ${OPENGL_LIBRARIES})
|
|
|
|
endif(FLTK_USE_GL)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
if(USE_XFT)
|
|
|
|
target_link_libraries(fluid ${X11_Xft_LIB})
|
|
|
|
endif(USE_XFT)
|
2005-02-06 03:17:50 +03:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
if(HAVE_XINERAMA)
|
|
|
|
target_link_libraries(fluid ${X11_Xinerama_LIB})
|
|
|
|
endif(HAVE_XINERAMA)
|
|
|
|
|
|
|
|
install(TARGETS fluid
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_BIN}
|
|
|
|
)
|