mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-09 12:05:52 -04:00
bb92f955c8
THPs are *almost* just a bunch of JPEGs so the TL;DR is BE fixes and replacing the decoding with libjpeg-turbo. Needs changes to thp.h which should be removed from Aurora, will do that later. Also audio not implemented yet.
13 lines
601 B
CMake
13 lines
601 B
CMake
ExternalProject_Add(
|
|
libjpeg-turbo
|
|
URL https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/3.1.90.tar.gz
|
|
URL_HASH SHA256=076ef1431f2803a91f07e0f92433d4dcf39bc9113226c4f46ba3d3d54f514c9d
|
|
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
|
)
|
|
|
|
ExternalProject_Get_Property(libjpeg-turbo INSTALL_DIR)
|
|
add_library(libjpeg-turbo-lib STATIC IMPORTED GLOBAL)
|
|
set_target_properties(libjpeg-turbo-lib PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/turbojpeg-static.lib)
|
|
target_include_directories(libjpeg-turbo-lib INTERFACE ${INSTALL_DIR}/include)
|