summaryrefslogtreecommitdiff
path: root/indra/cmake/JPEG.cmake
blob: 8047718f39931be52b0b34168f68ae2b93ec2fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- cmake -*-
include(Prebuilt)

include(Linking)
set(JPEG_FIND_QUIETLY ON)
set(JPEG_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindJPEG)
else (STANDALONE)
  use_prebuilt_binary(jpeglib)
  if (LINUX)
    set(JPEG_LIBRARIES jpeg)
  elseif (DARWIN)
    set(JPEG_LIBRARIES
      lljpeg
      optimized ${ARCH_PREBUILT_DIRS_RELEASE}/lljpeg
      debug ${ARCH_PREBUILT_DIRS_DEBUG}/lljpeg
      )
  elseif (WINDOWS)
    set(JPEG_LIBRARIES jpeglib_6b)
  endif (LINUX)
  set(JPEG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (STANDALONE)