summaryrefslogtreecommitdiffstats
path: root/Modules/FindFLTK.cmake
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@kitware.com>2002-08-14 15:44:40 (GMT)
committerLuis Ibanez <luis.ibanez@kitware.com>2002-08-14 15:44:40 (GMT)
commitf035d0c0c53122e013cd60768c6ed2269060e694 (patch)
treeea053a886d86ddeeeefcbdb8e82cb9f208c003bb /Modules/FindFLTK.cmake
parentd38b48fcae83de52819ce6ed98355485f858a9f0 (diff)
downloadCMake-f035d0c0c53122e013cd60768c6ed2269060e694.zip
CMake-f035d0c0c53122e013cd60768c6ed2269060e694.tar.gz
CMake-f035d0c0c53122e013cd60768c6ed2269060e694.tar.bz2
ENH: Platform dependent libraries added.
Diffstat (limited to 'Modules/FindFLTK.cmake')
-rw-r--r--Modules/FindFLTK.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/FindFLTK.cmake b/Modules/FindFLTK.cmake
index bde27c4..8ad9d98 100644
--- a/Modules/FindFLTK.cmake
+++ b/Modules/FindFLTK.cmake
@@ -28,6 +28,17 @@ FIND_PATH(FLTK_INCLUDE_PATH FL/Fl.h
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
# So the FLTK_LIBRARY does not appear the first time
IF(FLTK_INCLUDE_PATH)
@@ -58,7 +69,7 @@ IF(FLTK_INCLUDE_PATH)
)
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)