PageRenderTime 152ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. # USE_KDU can be set when launching cmake as an option using the argument -DUSE_KDU:BOOL=ON
  3. # When building using proprietary binaries though (i.e. having access to LL private servers),
  4. # we always build with KDU
  5. if (INSTALL_PROPRIETARY)
  6. set(USE_KDU ON CACHE BOOL "Use Kakadu library.")
  7. endif (INSTALL_PROPRIETARY)
  8. if (USE_KDU)
  9. include(Prebuilt)
  10. use_prebuilt_binary(kdu)
  11. if (WINDOWS)
  12. set(KDU_LIBRARY kdu.lib)
  13. else (WINDOWS)
  14. set(KDU_LIBRARY libkdu.a)
  15. endif (WINDOWS)
  16. set(KDU_INCLUDE_DIR ${AUTOBUILD_INSTALL_DIR}/include/kdu)
  17. set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu)
  18. set(LLKDU_LIBRARIES llkdu)
  19. endif (USE_KDU)