From 798d367d54a6c6379ad355bd8345fa40e31e7fe9 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 6 Sep 2008 18:24:57 -0500 Subject: Second Life viewer sources 1.21.0-RC --- linden/indra/cmake/JPEG.cmake | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 linden/indra/cmake/JPEG.cmake (limited to 'linden/indra/cmake/JPEG.cmake') diff --git a/linden/indra/cmake/JPEG.cmake b/linden/indra/cmake/JPEG.cmake new file mode 100644 index 0000000..5d0ee0d --- /dev/null +++ b/linden/indra/cmake/JPEG.cmake @@ -0,0 +1,23 @@ +# -*- 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 + optimized ${ARCH_PREBUILT_DIRS_RELEASE}/liblljpeg.a + debug ${ARCH_PREBUILT_DIRS_DEBUG}/liblljpeg.a + ) + elseif (WINDOWS) + set(JPEG_LIBRARIES jpeglib_6b) + endif (LINUX) + set(JPEG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) +endif (STANDALONE) -- cgit v1.1