1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 00:15:06 +00:00
OpenMW/cmake/FindLIBUNSHIELD.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
CMake
Raw Normal View History

2013-08-19 18:59:58 +00:00
# Locate LIBUNSHIELD
# This module defines
# LIBUNSHIELD_LIBRARIES
2013-08-19 18:59:58 +00:00
# LIBUNSHIELD_FOUND, if false, do not try to link to LibUnshield
# LIBUNSHIELD_INCLUDE_DIRS, where to find the headers
2013-08-19 18:59:58 +00:00
#
# Created by Tom Mason (wheybags) for OpenMW (https://openmw.org), based on FindMPG123.cmake
2013-08-19 18:59:58 +00:00
#
# Ripped off from other sources. In fact, this file is so generic (I
# just did a search and replace on another file) that I wonder why the
# CMake guys haven't wrapped this entire thing in a single
# function. Do we really need to repeat this stuff for every single
# library when they all work the same? </today's rant>
include(LibFindMacros)
2013-08-19 18:59:58 +00:00
set(POSSIBLE_LOCATIONS
~/Library/Frameworks
/Library/Frameworks
/usr/local
/usr
/sw # Fink
/opt/local # DarwinPorts
/opt/csw # Blastwave
/opt
/usr/include
2013-08-19 18:59:58 +00:00
)
libfind_pkg_detect(LIBUNSHIELD libunshield
FIND_PATH libunshield.h
HINTS ${POSSIBLE_LOCATIONS}
FIND_LIBRARY unshield
HINTS ${POSSIBLE_LOCATIONS}
)
libfind_process(LIBUNSHIELD)