PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/LLKDU.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 21 lines | 15 code | 2 blank | 4 comment | 4 complexity | 965d0469b096dcac680df4c3524ce53b MD5 | raw file
 1# -*- cmake -*-
 2
 3# USE_KDU can be set when launching cmake as an option using the argument -DUSE_KDU:BOOL=ON
 4# When building using proprietary binaries though (i.e. having access to LL private servers), 
 5# we always build with KDU
 6if (INSTALL_PROPRIETARY)
 7  set(USE_KDU ON CACHE BOOL "Use Kakadu library.")
 8endif (INSTALL_PROPRIETARY)
 9
10if (USE_KDU)
11  include(Prebuilt)
12  use_prebuilt_binary(kdu)
13  if (WINDOWS)
14    set(KDU_LIBRARY kdu.lib)
15  else (WINDOWS)
16    set(KDU_LIBRARY libkdu.a)
17  endif (WINDOWS)
18  set(KDU_INCLUDE_DIR ${AUTOBUILD_INSTALL_DIR}/include/kdu)
19  set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu)
20  set(LLKDU_LIBRARIES llkdu)
21endif (USE_KDU)