standard path.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4314
3789f03b-4d11-0410-bbf8-
ca57d06f2519
set(USE_INCLUDED_ZLIB 1)
endif()
+# Check for libjpeg
+find_package(JPEG REQUIRED)
+
# Check for GNUTLS library
find_package(GnuTLS)
if(GNUTLS_FOUND)
-include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win)
+include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win ${JPEG_INCLUDE_DIR})
set(RFB_SOURCES
Blacklist.cxx
encodings.cxx
util.cxx)
-set(RFB_LIBRARIES jpeg os)
+set(RFB_LIBRARIES ${JPEG_LIBRARIES} os)
if(GNUTLS_FOUND)
set(RFB_SOURCES