2005-12-14 21:51:08 +03:00
|
|
|
# - Find the native FLTK includes and library
|
2009-01-23 08:30:22 +03:00
|
|
|
#
|
|
|
|
# By default FindFLTK.cmake will search for all of the FLTK components and
|
|
|
|
# add them to the FLTK_LIBRARIES variable.
|
|
|
|
#
|
|
|
|
# You can limit the components which get placed in FLTK_LIBRARIES by
|
|
|
|
# defining one or more of the following three options:
|
|
|
|
#
|
|
|
|
# FLTK_SKIP_OPENGL, set to true to disable searching for opengl and
|
|
|
|
# the FLTK GL library
|
|
|
|
# FLTK_SKIP_FORMS, set to true to disable searching for fltk_forms
|
|
|
|
# FLTK_SKIP_IMAGES, set to true to disable searching for fltk_images
|
|
|
|
#
|
|
|
|
# FLTK_SKIP_FLUID, set to true if the fluid binary need not be present
|
|
|
|
# at build time
|
|
|
|
#
|
|
|
|
# The following variables will be defined:
|
|
|
|
# FLTK_FOUND, True if all components not skipped were found
|
|
|
|
# FLTK_INCLUDE_DIR, where to find include files
|
|
|
|
# FLTK_LIBRARIES, list of fltk libraries you should link against
|
|
|
|
# FLTK_FLUID_EXECUTABLE, where to find the Fluid tool
|
|
|
|
# FLTK_WRAP_UI, This enables the FLTK_WRAP_UI command
|
|
|
|
#
|
|
|
|
# The following cache variables are assigned but should not be used.
|
|
|
|
# See the FLTK_LIBRARIES variable instead.
|
|
|
|
#
|
|
|
|
# FLTK_BASE_LIBRARY = the full path to fltk.lib
|
|
|
|
# FLTK_GL_LIBRARY = the full path to fltk_gl.lib
|
|
|
|
# FLTK_FORMS_LIBRARY = the full path to fltk_forms.lib
|
|
|
|
# FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib
|
|
|
|
|
2009-09-28 19:45:50 +04:00
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2001-2009 Kitware, Inc.
|
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
2010-08-07 04:48:47 +04:00
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
2009-09-28 19:45:50 +04:00
|
|
|
# License text for the above reference.)
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT FLTK_SKIP_OPENGL)
|
|
|
|
find_package(OpenGL)
|
|
|
|
endif()
|
2009-01-22 07:52:37 +03:00
|
|
|
|
2005-12-14 21:51:08 +03:00
|
|
|
# Platform dependent libraries required by FLTK
|
2012-08-13 21:47:32 +04:00
|
|
|
if(WIN32)
|
|
|
|
if(NOT CYGWIN)
|
|
|
|
if(BORLAND)
|
|
|
|
set( FLTK_PLATFORM_DEPENDENT_LIBS import32 )
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set( FLTK_PLATFORM_DEPENDENT_LIBS wsock32 comctl32 )
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
include(FindX11)
|
|
|
|
find_library(FLTK_MATH_LIBRARY m)
|
|
|
|
set( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} ${FLTK_MATH_LIBRARY})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
set( FLTK_PLATFORM_DEPENDENT_LIBS "-framework Carbon -framework Cocoa -framework ApplicationServices -lz")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2003-01-16 21:24:49 +03:00
|
|
|
|
2005-07-06 23:25:21 +04:00
|
|
|
# If FLTK_INCLUDE_DIR is already defined we assigne its value to FLTK_DIR
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLTK_INCLUDE_DIR)
|
|
|
|
set(FLTK_DIR ${FLTK_INCLUDE_DIR})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2002-09-03 01:34:45 +04:00
|
|
|
|
|
|
|
|
2005-07-06 23:25:21 +04:00
|
|
|
# If FLTK has been built using CMake we try to find everything directly
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_DIR_STRING "directory containing FLTKConfig.cmake. This is either the root of the build tree, or PREFIX/lib/fltk for an installation.")
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Search only if the location is not already known.
|
2012-08-13 21:47:32 +04:00
|
|
|
if(NOT FLTK_DIR)
|
2005-07-06 23:25:21 +04:00
|
|
|
# Get the system search path as a list.
|
2012-08-13 21:47:32 +04:00
|
|
|
file(TO_CMAKE_PATH "$ENV{PATH}" FLTK_DIR_SEARCH2)
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Construct a set of paths relative to the system search path.
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_DIR_SEARCH "")
|
|
|
|
foreach(dir ${FLTK_DIR_SEARCH2})
|
|
|
|
set(FLTK_DIR_SEARCH ${FLTK_DIR_SEARCH} "${dir}/../lib/fltk")
|
2012-08-13 21:50:14 +04:00
|
|
|
endforeach()
|
2012-08-13 21:47:32 +04:00
|
|
|
string(REPLACE "//" "/" FLTK_DIR_SEARCH "${FLTK_DIR_SEARCH}")
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Look for an installation or build tree.
|
|
|
|
#
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(FLTK_DIR FLTKConfig.cmake
|
2005-07-06 23:25:21 +04:00
|
|
|
# Look for an environment variable FLTK_DIR.
|
|
|
|
$ENV{FLTK_DIR}
|
|
|
|
|
|
|
|
# Look in places relative to the system executable search path.
|
|
|
|
${FLTK_DIR_SEARCH}
|
|
|
|
|
|
|
|
# Look in standard UNIX install locations.
|
|
|
|
/usr/local/lib/fltk
|
|
|
|
/usr/lib/fltk
|
|
|
|
/usr/local/fltk
|
|
|
|
/usr/X11R6/include
|
|
|
|
|
|
|
|
# Read from the CMakeSetup registry entries. It is likely that
|
|
|
|
# FLTK will have been recently built.
|
2009-01-22 07:52:37 +03:00
|
|
|
# TODO: Is this really a good idea? I can already hear the user screaming, "But
|
|
|
|
# it worked when I configured the build LAST week!"
|
2005-07-06 23:25:21 +04:00
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild1]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild2]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild3]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild4]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild5]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild6]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild7]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild8]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild9]
|
|
|
|
[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild10]
|
|
|
|
|
|
|
|
# Help the user find it if we cannot.
|
|
|
|
DOC "The ${FLTK_DIR_STRING}"
|
|
|
|
)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Check if FLTK was built using CMake
|
2012-08-13 21:47:32 +04:00
|
|
|
if(EXISTS ${FLTK_DIR}/FLTKConfig.cmake)
|
|
|
|
set(FLTK_BUILT_WITH_CMAKE 1)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLTK_BUILT_WITH_CMAKE)
|
|
|
|
set(FLTK_FOUND 1)
|
|
|
|
include(${FLTK_DIR}/FLTKConfig.cmake)
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Fluid
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLUID_COMMAND)
|
|
|
|
set(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(FLTK_FLUID_EXECUTABLE fluid PATHS
|
2005-07-06 23:25:21 +04:00
|
|
|
${FLTK_EXECUTABLE_DIRS}
|
|
|
|
${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo
|
|
|
|
${FLTK_EXECUTABLE_DIRS}/Debug
|
|
|
|
${FLTK_EXECUTABLE_DIRS}/Release
|
|
|
|
NO_SYSTEM_PATH)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
# mark_as_advanced(FLTK_FLUID_EXECUTABLE)
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_INCLUDE_DIR ${FLTK_DIR})
|
|
|
|
link_directories(${FLTK_LIBRARY_DIRS})
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_BASE_LIBRARY fltk)
|
|
|
|
set(FLTK_GL_LIBRARY fltk_gl)
|
|
|
|
set(FLTK_FORMS_LIBRARY fltk_forms)
|
|
|
|
set(FLTK_IMAGES_LIBRARY fltk_images)
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Add the extra libraries
|
2012-08-13 21:47:32 +04:00
|
|
|
load_cache(${FLTK_DIR}
|
2005-07-06 23:25:21 +04:00
|
|
|
READ_WITH_PREFIX
|
|
|
|
FL FLTK_USE_SYSTEM_JPEG
|
|
|
|
FL FLTK_USE_SYSTEM_PNG
|
|
|
|
FL FLTK_USE_SYSTEM_ZLIB
|
|
|
|
)
|
2002-09-03 01:34:45 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_IMAGES_LIBS "")
|
|
|
|
if(FLFLTK_USE_SYSTEM_JPEG)
|
|
|
|
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_jpeg)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLFLTK_USE_SYSTEM_PNG)
|
|
|
|
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_png)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLFLTK_USE_SYSTEM_ZLIB)
|
|
|
|
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_zlib)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_IMAGES_LIBS "${FLTK_IMAGES_LIBS}" CACHE INTERNAL
|
2005-07-06 23:25:21 +04:00
|
|
|
"Extra libraries for fltk_images library.")
|
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# if FLTK was not built using CMake
|
|
|
|
# Find fluid executable.
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(FLTK_FLUID_EXECUTABLE fluid ${FLTK_INCLUDE_DIR}/fluid)
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# Use location of fluid to help find everything else.
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_INCLUDE_SEARCH_PATH "")
|
|
|
|
set(FLTK_LIBRARY_SEARCH_PATH "")
|
|
|
|
if(FLTK_FLUID_EXECUTABLE)
|
|
|
|
get_filename_component(FLTK_BIN_DIR "${FLTK_FLUID_EXECUTABLE}" PATH)
|
|
|
|
set(FLTK_INCLUDE_SEARCH_PATH ${FLTK_INCLUDE_SEARCH_PATH}
|
2005-07-06 23:25:21 +04:00
|
|
|
${FLTK_BIN_DIR}/../include ${FLTK_BIN_DIR}/..)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_LIBRARY_SEARCH_PATH ${FLTK_LIBRARY_SEARCH_PATH}
|
2005-07-06 23:25:21 +04:00
|
|
|
${FLTK_BIN_DIR}/../lib)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_WRAP_UI 1)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2009-01-22 07:52:37 +03:00
|
|
|
#
|
2009-01-23 08:30:22 +03:00
|
|
|
# Try to find FLTK include dir using fltk-config
|
|
|
|
#
|
2012-08-13 21:47:32 +04:00
|
|
|
if(UNIX)
|
2009-01-22 07:52:37 +03:00
|
|
|
# Use fltk-config to generate a list of possible include directories
|
2012-08-13 21:47:32 +04:00
|
|
|
find_program(FLTK_CONFIG_SCRIPT fltk-config PATHS ${FLTK_BIN_DIR})
|
|
|
|
if(FLTK_CONFIG_SCRIPT)
|
|
|
|
if(NOT FLTK_INCLUDE_DIR)
|
|
|
|
exec_program(${FLTK_CONFIG_SCRIPT} ARGS --cxxflags OUTPUT_VARIABLE FLTK_CXXFLAGS)
|
|
|
|
if(FLTK_CXXFLAGS)
|
|
|
|
string(REGEX MATCHALL "-I[^ ]*" _fltk_temp_dirs ${FLTK_CXXFLAGS})
|
|
|
|
string(REPLACE "-I" "" _fltk_temp_dirs "${_fltk_temp_dirs}")
|
|
|
|
foreach(_dir ${_fltk_temp_dirs})
|
|
|
|
string(STRIP ${_dir} _output)
|
|
|
|
list(APPEND _FLTK_POSSIBLE_INCLUDE_DIRS ${_output})
|
|
|
|
endforeach()
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(FLTK_INCLUDE_SEARCH_PATH ${FLTK_INCLUDE_SEARCH_PATH}
|
2005-07-06 23:25:21 +04:00
|
|
|
/usr/local/fltk
|
|
|
|
/usr/X11R6/include
|
2009-01-22 07:52:37 +03:00
|
|
|
${_FLTK_POSSIBLE_INCLUDE_DIRS}
|
2005-07-06 23:25:21 +04:00
|
|
|
)
|
2002-09-05 20:00:45 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_path(FLTK_INCLUDE_DIR
|
2009-01-22 06:43:22 +03:00
|
|
|
NAMES FL/Fl.h FL/Fl.H # fltk 1.1.9 has Fl.H (#8376)
|
|
|
|
PATHS ${FLTK_INCLUDE_SEARCH_PATH})
|
2012-08-13 21:42:58 +04:00
|
|
|
|
2009-01-22 07:52:37 +03:00
|
|
|
#
|
|
|
|
# Try to find FLTK library
|
2012-08-13 21:47:32 +04:00
|
|
|
if(UNIX)
|
|
|
|
if(FLTK_CONFIG_SCRIPT)
|
|
|
|
exec_program(${FLTK_CONFIG_SCRIPT} ARGS --libs OUTPUT_VARIABLE _FLTK_POSSIBLE_LIBS)
|
|
|
|
if(_FLTK_POSSIBLE_LIBS)
|
|
|
|
get_filename_component(_FLTK_POSSIBLE_LIBRARY_DIR ${_FLTK_POSSIBLE_LIBS} PATH)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(FLTK_LIBRARY_SEARCH_PATH ${FLTK_LIBRARY_SEARCH_PATH}
|
2005-07-06 23:25:21 +04:00
|
|
|
/usr/local/fltk/lib
|
|
|
|
/usr/X11R6/lib
|
|
|
|
${FLTK_INCLUDE_DIR}/lib
|
2009-01-22 07:52:37 +03:00
|
|
|
${_FLTK_POSSIBLE_LIBRARY_DIR}
|
2005-07-06 23:25:21 +04:00
|
|
|
)
|
2004-07-22 18:59:34 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(FLTK_BASE_LIBRARY NAMES fltk fltkd
|
2005-07-06 23:25:21 +04:00
|
|
|
PATHS ${FLTK_LIBRARY_SEARCH_PATH})
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(FLTK_GL_LIBRARY NAMES fltkgl fltkgld fltk_gl
|
2005-07-06 23:25:21 +04:00
|
|
|
PATHS ${FLTK_LIBRARY_SEARCH_PATH})
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(FLTK_FORMS_LIBRARY NAMES fltkforms fltkformsd fltk_forms
|
2005-07-06 23:25:21 +04:00
|
|
|
PATHS ${FLTK_LIBRARY_SEARCH_PATH})
|
2012-08-13 21:47:32 +04:00
|
|
|
find_library(FLTK_IMAGES_LIBRARY NAMES fltkimages fltkimagesd fltk_images
|
2005-07-06 23:25:21 +04:00
|
|
|
PATHS ${FLTK_LIBRARY_SEARCH_PATH})
|
|
|
|
|
|
|
|
# Find the extra libraries needed for the fltk_images library.
|
2012-08-13 21:47:32 +04:00
|
|
|
if(UNIX)
|
|
|
|
if(FLTK_CONFIG_SCRIPT)
|
|
|
|
exec_program(${FLTK_CONFIG_SCRIPT} ARGS --use-images --ldflags
|
2005-07-06 23:25:21 +04:00
|
|
|
OUTPUT_VARIABLE FLTK_IMAGES_LDFLAGS)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_LIBS_EXTRACT_REGEX ".*-lfltk_images (.*) -lfltk.*")
|
|
|
|
if("${FLTK_IMAGES_LDFLAGS}" MATCHES "${FLTK_LIBS_EXTRACT_REGEX}")
|
|
|
|
string(REGEX REPLACE "${FLTK_LIBS_EXTRACT_REGEX}" "\\1"
|
2005-07-06 23:25:21 +04:00
|
|
|
FLTK_IMAGES_LIBS "${FLTK_IMAGES_LDFLAGS}")
|
2012-08-13 21:47:32 +04:00
|
|
|
string(REGEX REPLACE " +" ";" FLTK_IMAGES_LIBS "${FLTK_IMAGES_LIBS}")
|
2005-07-06 23:25:21 +04:00
|
|
|
# The EXEC_PROGRAM will not be inherited into subdirectories from
|
|
|
|
# the file that originally included this module. Save the answer.
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_IMAGES_LIBS "${FLTK_IMAGES_LIBS}" CACHE INTERNAL
|
2005-07-06 23:25:21 +04:00
|
|
|
"Extra libraries for fltk_images library.")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
2009-01-23 08:30:22 +03:00
|
|
|
# Append all of the required libraries together (by default, everything)
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_LIBRARIES)
|
|
|
|
if(NOT FLTK_SKIP_IMAGES)
|
|
|
|
list(APPEND FLTK_LIBRARIES ${FLTK_IMAGES_LIBRARY})
|
|
|
|
endif()
|
|
|
|
if(NOT FLTK_SKIP_FORMS)
|
|
|
|
list(APPEND FLTK_LIBRARIES ${FLTK_FORMS_LIBRARY})
|
|
|
|
endif()
|
|
|
|
if(NOT FLTK_SKIP_OPENGL)
|
|
|
|
list(APPEND FLTK_LIBRARIES ${FLTK_GL_LIBRARY} ${OPENGL_gl_LIBRARY})
|
|
|
|
list(APPEND FLTK_INCLUDE_DIR ${OPENGL_INCLUDE_DIR})
|
|
|
|
list(REMOVE_DUPLICATES FLTK_INCLUDE_DIR)
|
|
|
|
endif()
|
|
|
|
list(APPEND FLTK_LIBRARIES ${FLTK_BASE_LIBRARY})
|
|
|
|
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
|
|
|
if(FLTK_SKIP_FLUID)
|
2009-01-23 08:30:22 +03:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR)
|
2012-08-13 21:47:32 +04:00
|
|
|
else()
|
2009-01-23 08:30:22 +03:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR FLTK_FLUID_EXECUTABLE)
|
2012-08-13 21:47:32 +04:00
|
|
|
endif()
|
2009-01-22 07:52:37 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(FLTK_FOUND)
|
|
|
|
if(APPLE)
|
|
|
|
set(FLTK_LIBRARIES ${FLTK_PLATFORM_DEPENDENT_LIBS} ${FLTK_LIBRARIES})
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${FLTK_PLATFORM_DEPENDENT_LIBS})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-07-06 23:25:21 +04:00
|
|
|
|
|
|
|
# The following deprecated settings are for compatibility with CMake 1.4
|
2012-08-13 21:47:32 +04:00
|
|
|
set (HAS_FLTK ${FLTK_FOUND})
|
|
|
|
set (FLTK_INCLUDE_PATH ${FLTK_INCLUDE_DIR})
|
|
|
|
set (FLTK_FLUID_EXE ${FLTK_FLUID_EXECUTABLE})
|
|
|
|
set (FLTK_LIBRARY ${FLTK_LIBRARIES})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2008-06-16 23:19:44 +04:00
|
|
|
|