ENH: Platform dependent libraries added.

This commit is contained in:
Luis Ibanez 2002-08-14 11:44:40 -04:00
parent d38b48fcae
commit f035d0c0c5
1 changed files with 12 additions and 1 deletions

View File

@ -28,6 +28,17 @@ FIND_PATH(FLTK_INCLUDE_PATH FL/Fl.h
H:/usr/local/fltk H:/usr/local/fltk
) )
# Platform dependent libraries required by FLTK
IF(WIN32)
SET( FLTK_PLATFORM_DEPENDENT_LIBS wsock32 )
ENDIF(WIN32)
IF(UNIX)
SET( FLTK_PLATFORM_DEPENDENT_LIBS ${CMAKE_X_LIBS} -lm)
ENDIF(UNIX)
# Make sure that the FLTK include path has been set # Make sure that the FLTK include path has been set
# So the FLTK_LIBRARY does not appear the first time # So the FLTK_LIBRARY does not appear the first time
IF(FLTK_INCLUDE_PATH) IF(FLTK_INCLUDE_PATH)
@ -58,7 +69,7 @@ IF(FLTK_INCLUDE_PATH)
) )
ENDIF(USE_FLTK_VERSION_1.1) ENDIF(USE_FLTK_VERSION_1.1)
SET( FLTK_LIBRARY ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY} ${FLTK_FORMS_LIBRARY} ${FLTK_IMAGES_LIBRARY} ) SET( FLTK_LIBRARY ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY} ${FLTK_FORMS_LIBRARY} ${FLTK_IMAGES_LIBRARY} ${FLTK_PLATFORM_DEPENDENT_LIBS} )
ENDIF(FLTK_INCLUDE_PATH) ENDIF(FLTK_INCLUDE_PATH)