summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindGIF.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/modules/FindGIF.cmake')
-rw-r--r--project/cmake/modules/FindGIF.cmake46
1 files changed, 0 insertions, 46 deletions
diff --git a/project/cmake/modules/FindGIF.cmake b/project/cmake/modules/FindGIF.cmake
deleted file mode 100644
index 8649bd4..0000000
--- a/project/cmake/modules/FindGIF.cmake
+++ /dev/null
@@ -1,46 +0,0 @@
1#.rst:
2# FindGIF
3# -------
4# Finds the libgif library
5#
6# This will will define the following variables::
7#
8# GIF_FOUND - system has libgif
9# GIF_INCLUDE_DIRS - the libgif include directory
10# GIF_LIBRARIES - the libgif libraries
11#
12# and the following imported targets::
13#
14# GIF::GIF - The libgif library
15
16find_path(GIF_INCLUDE_DIR gif_lib.h)
17
18include(FindPackageHandleStandardArgs)
19if(NOT WIN32)
20 find_library(GIF_LIBRARY NAMES gif)
21 find_package_handle_standard_args(GIF
22 REQUIRED_VARS GIF_LIBRARY GIF_INCLUDE_DIR)
23else()
24 # Dynamically loaded DLL
25 find_package_handle_standard_args(GIF
26 REQUIRED_VARS GIF_INCLUDE_DIR)
27endif()
28
29if(GIF_FOUND)
30 set(GIF_LIBRARIES ${GIF_LIBRARY})
31 set(GIF_INCLUDE_DIRS ${GIF_INCLUDE_DIR})
32 set(GIF_DEFINITIONS -DHAVE_LIBGIF=1)
33
34 if(NOT TARGET GIF::GIF)
35 add_library(GIF::GIF UNKNOWN IMPORTED)
36 if(GIF_LIBRARY)
37 set_target_properties(GIF::GIF PROPERTIES
38 IMPORTED_LOCATION "${GIF_LIBRARY}")
39 endif()
40 set_target_properties(GIF::GIF PROPERTIES
41 INTERFACE_INCLUDE_DIRECTORIES "${GIF_INCLUDE_DIR}"
42 INTERFACE_COMPILE_DEFINITIONS HAVE_LIBGIF=1)
43 endif()
44endif()
45
46mark_as_advanced(GIF_INCLUDE_DIR GIF_LIBRARY)