dolphin/Source/Core/DiscIO/CMakeLists.txt
cyrozap c2de1d041a Fix builds with system LZMA when using versions of CMake before 3.14
The "FindLibLZMA.cmake" module in CMake versions prior to 3.14 do not
set an alias like how Externals/liblzma/CMakeLists.txt does, so builds
performed using one of those older CMake versions will fail if the
system LZMA library is detected. To fix this, we need to link against
"lzma" instead of "LibLZMA::LibLZMA".

Fixes: b59ef81a7e ("WIA: Implement bzip2, LZMA, and LZMA2 decompression")
2020-08-11 02:53:16 -05:00

70 lines
1.1 KiB
CMake

add_library(discio
Blob.cpp
Blob.h
CISOBlob.cpp
CISOBlob.h
CompressedBlob.cpp
CompressedBlob.h
DirectoryBlob.cpp
DirectoryBlob.h
DiscExtractor.cpp
DiscExtractor.h
DiscScrubber.cpp
DiscScrubber.h
DriveBlob.cpp
DriveBlob.h
Enums.cpp
Enums.h
FileBlob.cpp
FileBlob.h
FileSystemGCWii.cpp
FileSystemGCWii.h
Filesystem.cpp
Filesystem.h
LaggedFibonacciGenerator.cpp
LaggedFibonacciGenerator.h
MultithreadedCompressor.h
NANDImporter.cpp
NANDImporter.h
ScrubbedBlob.cpp
ScrubbedBlob.h
TGCBlob.cpp
TGCBlob.h
Volume.cpp
Volume.h
VolumeDisc.cpp
VolumeDisc.h
VolumeFileBlobReader.cpp
VolumeFileBlobReader.h
VolumeGC.cpp
VolumeGC.h
VolumeVerifier.cpp
VolumeVerifier.h
VolumeWad.cpp
VolumeWad.h
VolumeWii.cpp
VolumeWii.h
WbfsBlob.cpp
WbfsBlob.h
WIABlob.cpp
WIABlob.h
WIACompression.cpp
WIACompression.h
WiiEncryptionCache.cpp
WiiEncryptionCache.h
WiiSaveBanner.cpp
WiiSaveBanner.h
)
target_link_libraries(discio
PUBLIC
BZip2::BZip2
lzma
zstd
PRIVATE
minizip
pugixml
ZLIB::ZLIB
)