Skip to content

Commit

Permalink
Add libjpeg-turbo as jpeg (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsheth committed Nov 13, 2019
1 parent f2b417c commit 68a59f8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cmake/projects/Jpeg/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

Expand Down Expand Up @@ -52,6 +53,28 @@ hunter_add_version(
42ff243ae28bdda5b4df5c47fb727272a534dc94
)

hunter_add_version(
PACKAGE_NAME
Jpeg
VERSION
"turbo-2.0.3-p4"
URL
"https://github.com/cpp-pm/libjpeg-turbo/archive/v2.0.3-p4.tar.gz"
SHA1
75c9961f52ef9f79a79498e3d46f9107f467494d
)

string(FIND "${HUNTER_Jpeg_VERSION}" "turbo" HUNTER_Jpeg_IS_TURBO)
if(NOT HUNTER_Jpeg_IS_TURBO EQUAL -1)
hunter_cmake_args(
Jpeg
CMAKE_ARGS
ENABLE_SHARED=OFF
ENABLE_STATIC=ON
EXPORT_AS_JPEG=ON
)
endif()

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(Jpeg)
hunter_download(PACKAGE_NAME Jpeg)

0 comments on commit 68a59f8

Please sign in to comment.