rom-properties/cmake/libs/FindLZO.cmake
David Korth 640cb2bf8a [libromdata] CisoPspReader: Added initial support for JISO.
It has a unique header, but the index entries table is similar to the
other formats. It does *not* set the high bit to indicate NC; instead,
it uses the same method as CISOv2, where the compressed block size
matches the uncompressed block size.

Compression algorithm is lzo1x.

TODO:
- JISO supports NC areas. Figure this part out.
- Add LZO to extlib.
2020-09-05 05:03:29 -04:00

23 lines
626 B
CMake

# Find LZO libraries and headers.
# If found, the following variables will be defined:
# - LZO_FOUND: System has LZO.
# - LZO_INCLUDE_DIRS: LZO include directories.
# - LZO_LIBRARIES: LZO libraries.
# - LZO_DEFINITIONS: Compiler switches required for using LZO.
#
# In addition, a target LZO::lzo will be created with all of
# these definitions.
#
# References:
# - https://cmake.org/Wiki/CMake:How_To_Find_Libraries
# - http://francesco-cek.com/cmake-and-gtk-3-the-easy-way/
#
INCLUDE(FindLibraryPkgConfig)
FIND_LIBRARY_PKG_CONFIG(LZO
lzo2 # pkgconfig
lzo/lzo1x.h # header
lzo2 # library
LZO::lzo # imported target
)