finding libjpeg can be a bit more complex, there are systems that are
not delivering a .pc for it. So we should just use the cmake module to
find it.
include(CheckIncludeFile)
include(CheckTypeSize)
include(FindPkgConfig)
+include(FindJPEG)
include(CTest)
find_package(Threads REQUIRED)
pkg_check_modules(VALGRIND valgrind)
pkg_check_modules(OPENSSL openssl>=1.0)
pkg_check_modules(GNUTLS gnutls>=2.12.16)
-pkg_check_modules(LIBJPEG libjpeg REQUIRED)
+if (NOT JPEG_FOUND)
+ error("a jpeg library is needed.")
+endif()
set(SUGGEST_VALGRIND OFF)
if("${BUILD_PROFILE}" STREQUAL "dev")
set(PKG_CONFIG_REQUIRES_PRIVATE
zlib>=1.2.3
- libjpeg
+ #libjpeg is hard to find. there is a cmake module that does find it. and thats checked in common.cmake
+ #libjpeg
)
set(LIBRARIES