2010-04-06 02:33:58 +04:00
|
|
|
include_regular_expression("[.][cxx|c|h]$")
|
|
|
|
|
|
|
|
set(CPPFILES
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl.cxx
|
|
|
|
Fl_Adjuster.cxx
|
|
|
|
Fl_Bitmap.cxx
|
|
|
|
Fl_Browser.cxx
|
|
|
|
Fl_Browser_.cxx
|
|
|
|
Fl_Browser_load.cxx
|
|
|
|
Fl_Box.cxx
|
|
|
|
Fl_Button.cxx
|
|
|
|
Fl_Chart.cxx
|
|
|
|
Fl_Check_Browser.cxx
|
|
|
|
Fl_Check_Button.cxx
|
|
|
|
Fl_Choice.cxx
|
|
|
|
Fl_Clock.cxx
|
|
|
|
Fl_Color_Chooser.cxx
|
|
|
|
Fl_Counter.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
Fl_Device.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Dial.cxx
|
|
|
|
Fl_Double_Window.cxx
|
|
|
|
Fl_File_Browser.cxx
|
|
|
|
Fl_File_Chooser.cxx
|
|
|
|
Fl_File_Chooser2.cxx
|
|
|
|
Fl_File_Icon.cxx
|
|
|
|
Fl_File_Input.cxx
|
|
|
|
Fl_Group.cxx
|
|
|
|
Fl_Help_View.cxx
|
|
|
|
Fl_Image.cxx
|
|
|
|
Fl_Input.cxx
|
|
|
|
Fl_Input_.cxx
|
|
|
|
Fl_Light_Button.cxx
|
|
|
|
Fl_Menu.cxx
|
|
|
|
Fl_Menu_.cxx
|
|
|
|
Fl_Menu_Bar.cxx
|
2009-08-30 07:45:52 +04:00
|
|
|
Fl_Sys_Menu_Bar.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Menu_Button.cxx
|
|
|
|
Fl_Menu_Window.cxx
|
|
|
|
Fl_Menu_add.cxx
|
|
|
|
Fl_Menu_global.cxx
|
|
|
|
Fl_Multi_Label.cxx
|
2010-01-15 19:02:00 +03:00
|
|
|
Fl_Native_File_Chooser.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Overlay_Window.cxx
|
|
|
|
Fl_Pack.cxx
|
2010-07-10 18:25:46 +04:00
|
|
|
Fl_Paged_Device.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Pixmap.cxx
|
|
|
|
Fl_Positioner.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
Fl_Printer.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Preferences.cxx
|
|
|
|
Fl_Progress.cxx
|
|
|
|
Fl_Repeat_Button.cxx
|
|
|
|
Fl_Return_Button.cxx
|
|
|
|
Fl_Roller.cxx
|
|
|
|
Fl_Round_Button.cxx
|
|
|
|
Fl_Scroll.cxx
|
|
|
|
Fl_Scrollbar.cxx
|
|
|
|
Fl_Shared_Image.cxx
|
|
|
|
Fl_Single_Window.cxx
|
|
|
|
Fl_Slider.cxx
|
2010-01-15 19:02:00 +03:00
|
|
|
Fl_Table.cxx
|
|
|
|
Fl_Table_Row.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Tabs.cxx
|
|
|
|
Fl_Text_Buffer.cxx
|
|
|
|
Fl_Text_Display.cxx
|
|
|
|
Fl_Text_Editor.cxx
|
|
|
|
Fl_Tile.cxx
|
|
|
|
Fl_Tiled_Image.cxx
|
|
|
|
Fl_Tooltip.cxx
|
2010-01-15 19:02:00 +03:00
|
|
|
Fl_Tree.cxx
|
|
|
|
Fl_Tree_Item_Array.cxx
|
|
|
|
Fl_Tree_Item.cxx
|
|
|
|
Fl_Tree_Prefs.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Valuator.cxx
|
|
|
|
Fl_Value_Input.cxx
|
|
|
|
Fl_Value_Output.cxx
|
|
|
|
Fl_Value_Slider.cxx
|
|
|
|
Fl_Widget.cxx
|
|
|
|
Fl_Window.cxx
|
|
|
|
Fl_Window_fullscreen.cxx
|
|
|
|
Fl_Window_hotspot.cxx
|
|
|
|
Fl_Window_iconize.cxx
|
|
|
|
Fl_Wizard.cxx
|
|
|
|
Fl_XBM_Image.cxx
|
|
|
|
Fl_XPM_Image.cxx
|
|
|
|
Fl_abort.cxx
|
|
|
|
Fl_add_idle.cxx
|
|
|
|
Fl_arg.cxx
|
|
|
|
Fl_compose.cxx
|
|
|
|
Fl_display.cxx
|
|
|
|
Fl_get_key.cxx
|
|
|
|
Fl_get_system_colors.cxx
|
|
|
|
Fl_grab.cxx
|
|
|
|
Fl_lock.cxx
|
|
|
|
Fl_own_colormap.cxx
|
|
|
|
Fl_visual.cxx
|
|
|
|
Fl_x.cxx
|
|
|
|
filename_absolute.cxx
|
|
|
|
filename_expand.cxx
|
|
|
|
filename_ext.cxx
|
|
|
|
filename_isdir.cxx
|
|
|
|
filename_list.cxx
|
|
|
|
filename_match.cxx
|
|
|
|
filename_setext.cxx
|
|
|
|
fl_arc.cxx
|
|
|
|
fl_arci.cxx
|
|
|
|
fl_ask.cxx
|
|
|
|
fl_boxtype.cxx
|
|
|
|
fl_color.cxx
|
|
|
|
fl_cursor.cxx
|
|
|
|
fl_curve.cxx
|
|
|
|
fl_diamond_box.cxx
|
|
|
|
fl_dnd.cxx
|
|
|
|
fl_draw.cxx
|
|
|
|
fl_draw_image.cxx
|
|
|
|
fl_draw_pixmap.cxx
|
|
|
|
fl_engraved_label.cxx
|
|
|
|
fl_file_dir.cxx
|
|
|
|
fl_font.cxx
|
2006-09-26 22:05:10 +04:00
|
|
|
fl_gtk.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
fl_labeltype.cxx
|
|
|
|
fl_line_style.cxx
|
2007-01-04 17:53:54 +03:00
|
|
|
fl_open_uri.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
fl_oval_box.cxx
|
|
|
|
fl_overlay.cxx
|
|
|
|
fl_overlay_visual.cxx
|
|
|
|
fl_plastic.cxx
|
|
|
|
fl_read_image.cxx
|
|
|
|
fl_rect.cxx
|
|
|
|
fl_round_box.cxx
|
|
|
|
fl_rounded_box.cxx
|
|
|
|
fl_set_font.cxx
|
|
|
|
fl_set_fonts.cxx
|
|
|
|
fl_scroll_area.cxx
|
|
|
|
fl_shadow_box.cxx
|
|
|
|
fl_shortcut.cxx
|
|
|
|
fl_show_colormap.cxx
|
|
|
|
fl_symbols.cxx
|
|
|
|
fl_vertex.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
ps_image.cxx
|
2009-08-30 07:45:52 +04:00
|
|
|
screen_xywh.cxx
|
|
|
|
fl_utf8.cxx
|
2009-08-31 01:15:43 +04:00
|
|
|
fl_encoding_latin1.cxx
|
|
|
|
fl_encoding_mac_roman.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(FLCPPFILES
|
2004-10-19 00:29:58 +04:00
|
|
|
forms_compatability.cxx
|
|
|
|
forms_bitmap.cxx
|
|
|
|
forms_free.cxx
|
|
|
|
forms_fselect.cxx
|
|
|
|
forms_pixmap.cxx
|
|
|
|
forms_timer.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GLCPPFILES
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Gl_Choice.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
Fl_Gl_Device_Plugin.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
Fl_Gl_Overlay.cxx
|
|
|
|
Fl_Gl_Window.cxx
|
2007-02-01 21:10:07 +03:00
|
|
|
freeglut_geometry.cxx
|
|
|
|
freeglut_stroke_mono_roman.cxx
|
|
|
|
freeglut_stroke_roman.cxx
|
|
|
|
freeglut_teapot.cxx
|
2004-10-19 00:29:58 +04:00
|
|
|
gl_draw.cxx
|
|
|
|
gl_start.cxx
|
|
|
|
glut_compatability.cxx
|
|
|
|
glut_font.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(IMGCPPFILES
|
2004-10-19 00:29:58 +04:00
|
|
|
fl_images_core.cxx
|
|
|
|
Fl_BMP_Image.cxx
|
|
|
|
Fl_File_Icon2.cxx
|
|
|
|
Fl_GIF_Image.cxx
|
|
|
|
Fl_Help_Dialog.cxx
|
|
|
|
Fl_JPEG_Image.cxx
|
|
|
|
Fl_PNG_Image.cxx
|
|
|
|
Fl_PNM_Image.cxx
|
2010-04-06 02:33:58 +04:00
|
|
|
)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
set(CFILES
|
2004-10-19 00:29:58 +04:00
|
|
|
flstring.c
|
|
|
|
scandir.c
|
|
|
|
numericsort.c
|
|
|
|
vsnprintf.c
|
2009-08-30 07:45:52 +04:00
|
|
|
xutf8/is_right2left.c
|
|
|
|
xutf8/is_spacing.c
|
|
|
|
xutf8/case.c
|
|
|
|
xutf8/utf8Input.c
|
|
|
|
xutf8/utf8Utils.c
|
|
|
|
xutf8/utf8Wrap.c
|
2009-08-31 01:15:43 +04:00
|
|
|
xutf8/keysym2Ucs.c
|
2009-08-30 07:45:52 +04:00
|
|
|
fl_utf.c
|
2010-04-06 02:33:58 +04:00
|
|
|
)
|
|
|
|
|
2011-01-12 12:24:03 +03:00
|
|
|
add_definitions(-DFL_LIBRARY)
|
2010-04-06 02:33:58 +04:00
|
|
|
if(APPLE)
|
2010-12-17 13:43:41 +03:00
|
|
|
set(MMFILES
|
|
|
|
Fl_cocoa.mm
|
|
|
|
Fl_Quartz_Printer.mm
|
|
|
|
Fl_Native_File_Chooser_MAC.mm
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(MMFILES
|
|
|
|
)
|
2010-04-06 02:33:58 +04:00
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
#######################################################################
|
2010-12-17 13:43:41 +03:00
|
|
|
add_library(fltk STATIC ${CPPFILES} ${MMFILES} ${CFILES} fl_call_main.c)
|
2010-04-06 02:33:58 +04:00
|
|
|
set_target_properties(fltk PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
if(MSVC)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif()
|
|
|
|
set_target_properties(fltk
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltk
|
|
|
|
DEBUG_OUTPUT_NAME fltkd
|
|
|
|
)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
if(USE_THREADS)
|
|
|
|
target_link_libraries(fltk ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif(USE_THREADS)
|
|
|
|
|
|
|
|
if(USE_X11)
|
|
|
|
target_link_libraries(fltk ${X11_LIBRARIES})
|
|
|
|
endif(USE_X11)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(fltk comctl32)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2011-01-06 13:24:58 +03:00
|
|
|
if(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
target_link_libraries(fltk fltk_cairo ${PKG_CAIRO_LIBRARIES})
|
2011-01-06 13:24:58 +03:00
|
|
|
ENDif(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2010-11-28 00:46:59 +03:00
|
|
|
if(HAVE_XINERAMA)
|
2010-04-06 02:33:58 +04:00
|
|
|
target_link_libraries(fltk ${X11_Xinerama_LIB})
|
2010-11-28 00:46:59 +03:00
|
|
|
endif(HAVE_XINERAMA)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
if(USE_XFT)
|
|
|
|
target_link_libraries(fltk ${X11_Xft_LIB})
|
|
|
|
endif(USE_XFT)
|
|
|
|
|
|
|
|
if(LIB_fontconfig)
|
|
|
|
target_link_libraries(fltk ${LIB_fontconfig})
|
|
|
|
endif(LIB_fontconfig)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_forms STATIC ${FLCPPFILES})
|
|
|
|
target_link_libraries(fltk_forms fltk)
|
|
|
|
set_target_properties(fltk_forms
|
|
|
|
PROPERTIES CLEAN_DIRECT_OUTPUT 1
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_forms PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif()
|
|
|
|
set_target_properties(fltk_forms
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkforms
|
|
|
|
DEBUG_OUTPUT_NAME fltkformsd
|
|
|
|
)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_images STATIC ${IMGCPPFILES})
|
|
|
|
target_link_libraries(fltk_images fltk ${FLTK_PNG_LIBRARIES}
|
2005-08-06 09:02:56 +04:00
|
|
|
${FLTK_JPEG_LIBRARIES} ${FLTK_ZLIB_LIBRARIES})
|
2010-04-06 02:33:58 +04:00
|
|
|
set_target_properties(fltk_images PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
if(MSVC)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_images PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif()
|
|
|
|
set_target_properties(fltk_images
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkimages
|
|
|
|
DEBUG_OUTPUT_NAME fltkimagesd
|
|
|
|
)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
install(TARGETS fltk fltk_forms fltk_images
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
if(OPENGL_FOUND)
|
|
|
|
add_library(fltk_gl STATIC ${GLCPPFILES})
|
|
|
|
target_link_libraries(fltk_gl fltk ${OPENGL_LIBRARIES})
|
|
|
|
set_target_properties(fltk_gl PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
if(MSVC)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_gl PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif()
|
|
|
|
set_target_properties(fltk_gl
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkgl
|
|
|
|
DEBUG_OUTPUT_NAME fltkgld
|
|
|
|
)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
install(TARGETS fltk_gl
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|
|
|
|
endif(OPENGL_FOUND)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#######################################################################
|
|
|
|
if(OPTION_BUILD_SHARED_LIBS)
|
|
|
|
|
|
|
|
#######################################################################
|
2010-12-17 13:43:41 +03:00
|
|
|
add_library(fltk_SHARED SHARED ${CPPFILES} ${MMFILES} ${CFILES})
|
2010-04-06 02:33:58 +04:00
|
|
|
set_target_properties(fltk_SHARED
|
|
|
|
PROPERTIES CLEAN_DIRECT_OUTPUT 1
|
|
|
|
VERSION ${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}
|
|
|
|
SOVERSION ${FLTK_VERSION_PATCH}
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_SHARED
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkdll
|
|
|
|
DEBUG_OUTPUT_NAME fltkdlld
|
|
|
|
COMPILE_DEFINITIONS "FL_DLL;FL_LIBRARY"
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_SHARED PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
else()
|
|
|
|
set_target_properties(fltk_SHARED PROPERTIES OUTPUT_NAME fltk)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
if(USE_THREADS)
|
|
|
|
target_link_libraries(fltk_SHARED ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif(USE_THREADS)
|
|
|
|
|
|
|
|
if(USE_X11)
|
|
|
|
target_link_libraries(fltk_SHARED ${X11_LIBRARIES})
|
|
|
|
endif(USE_X11)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(fltk_SHARED comctl32)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2011-01-06 13:24:58 +03:00
|
|
|
if(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
target_link_libraries(fltk_SHARED fltk_cairo ${PKG_CAIRO_LIBRARIES})
|
2011-01-06 13:24:58 +03:00
|
|
|
ENDif(FLTK_HAVE_CAIRO)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
2010-11-28 00:46:59 +03:00
|
|
|
if(HAVE_XINERAMA)
|
2010-04-06 02:33:58 +04:00
|
|
|
target_link_libraries(fltk_SHARED ${X11_Xinerama_LIB})
|
2010-11-28 00:46:59 +03:00
|
|
|
endif(HAVE_XINERAMA)
|
2010-04-06 02:33:58 +04:00
|
|
|
|
|
|
|
if(USE_XFT)
|
|
|
|
target_link_libraries(fltk_SHARED ${X11_Xft_LIB})
|
|
|
|
endif(USE_XFT)
|
|
|
|
|
|
|
|
if(LIB_fontconfig)
|
|
|
|
target_link_libraries(fltk_SHARED ${LIB_fontconfig})
|
|
|
|
endif(LIB_fontconfig)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_forms_SHARED SHARED ${FLCPPFILES})
|
|
|
|
target_link_libraries(fltk_forms_SHARED fltk)
|
|
|
|
set_target_properties(fltk_forms_SHARED
|
|
|
|
PROPERTIES CLEAN_DIRECT_OUTPUT 1
|
|
|
|
VERSION ${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}
|
|
|
|
SOVERSION ${FLTK_VERSION_PATCH}
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_forms_SHARED
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkformsdll
|
|
|
|
DEBUG_OUTPUT_NAME fltkformsdlld
|
|
|
|
COMPILE_DEFINITIONS "FL_DLL;FL_LIBRARY"
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_forms_SHARED PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
else()
|
|
|
|
set_target_properties(fltk_forms_SHARED PROPERTIES OUTPUT_NAME fltk_forms)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
if(USE_THREADS)
|
|
|
|
target_link_libraries(fltk_SHARED ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif(USE_THREADS)
|
|
|
|
|
|
|
|
if(USE_X11)
|
|
|
|
target_link_libraries(fltk_SHARED ${X11_LIBRARIES})
|
|
|
|
endif(USE_X11)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
add_library(fltk_images_SHARED SHARED ${IMGCPPFILES})
|
|
|
|
target_link_libraries(fltk_images_SHARED fltk
|
|
|
|
${FLTK_PNG_LIBRARIES} ${FLTK_JPEG_LIBRARIES} ${FLTK_ZLIB_LIBRARIES}
|
|
|
|
)
|
|
|
|
set_target_properties(fltk_images_SHARED
|
|
|
|
PROPERTIES CLEAN_DIRECT_OUTPUT 1
|
|
|
|
VERSION ${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}
|
|
|
|
SOVERSION ${FLTK_VERSION_PATCH}
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_images_SHARED
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkimagesdll
|
|
|
|
DEBUG_OUTPUT_NAME fltkimagesdlld
|
|
|
|
COMPILE_DEFINITIONS "FL_DLL;FL_LIBRARY"
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_images_SHARED PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
else()
|
|
|
|
set_target_properties(fltk_images_SHARED PROPERTIES OUTPUT_NAME fltk_images)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
install(TARGETS fltk_SHARED fltk_forms_SHARED fltk_images_SHARED
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
if(OPENGL_FOUND)
|
|
|
|
add_library(fltk_gl_SHARED SHARED ${GLCPPFILES})
|
|
|
|
target_link_libraries(fltk_gl_SHARED fltk ${OPENGL_LIBRARIES})
|
|
|
|
set_target_properties(fltk_gl_SHARED
|
|
|
|
PROPERTIES CLEAN_DIRECT_OUTPUT 1
|
|
|
|
VERSION ${FLTK_VERSION_MAJOR}.${FLTK_VERSION_MINOR}
|
|
|
|
SOVERSION ${FLTK_VERSION_PATCH}
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
|
|
set_target_properties(fltk_gl_SHARED
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME fltkgldll
|
|
|
|
DEBUG_OUTPUT_NAME fltkgldlld
|
|
|
|
COMPILE_DEFINITIONS "FL_DLL;FL_LIBRARY"
|
|
|
|
)
|
|
|
|
if(OPTION_LARGE_FILE)
|
|
|
|
set_target_properties(fltk_gl_SHARED PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE)
|
|
|
|
endif(OPTION_LARGE_FILE)
|
|
|
|
else()
|
|
|
|
set_target_properties(fltk_gl_SHARED PROPERTIES OUTPUT_NAME fltk_gl)
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
install(TARGETS fltk_gl_SHARED
|
|
|
|
EXPORT fltk-install
|
|
|
|
DESTINATION ${PREFIX_LIB}
|
|
|
|
)
|
|
|
|
endif(OPENGL_FOUND)
|
2004-10-19 00:29:58 +04:00
|
|
|
|
2010-04-06 02:33:58 +04:00
|
|
|
endif(OPTION_BUILD_SHARED_LIBS)
|