Browse Source

Look for libjpeg in a more proper manner and don't just assume it's in a

standard path.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4314 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.1.90
Pierre Ossman 13 years ago
parent
commit
4c6bd4c770
2 changed files with 5 additions and 2 deletions
  1. 3
    0
      CMakeLists.txt
  2. 2
    2
      common/rfb/CMakeLists.txt

+ 3
- 0
CMakeLists.txt View File

@@ -93,6 +93,9 @@ if(NOT ZLIB_FOUND)
set(USE_INCLUDED_ZLIB 1)
endif()

# Check for libjpeg
find_package(JPEG REQUIRED)

# Check for GNUTLS library
find_package(GnuTLS)
if(GNUTLS_FOUND)

+ 2
- 2
common/rfb/CMakeLists.txt View File

@@ -1,4 +1,4 @@
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
@@ -65,7 +65,7 @@ set(RFB_SOURCES
encodings.cxx
util.cxx)

set(RFB_LIBRARIES jpeg os)
set(RFB_LIBRARIES ${JPEG_LIBRARIES} os)

if(GNUTLS_FOUND)
set(RFB_SOURCES

Loading…
Cancel
Save