summaryrefslogtreecommitdiff
path: root/indra/cmake/LLKDU.cmake
blob: a57c3d8715612be3a0dbf74991e3e84deb213fe9 (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
25
26
# -*- cmake -*-

# USE_KDU can be set when launching cmake as an option using the argument -DUSE_KDU:BOOL=ON
# When building using proprietary binaries though (i.e. having access to LL private servers), 
# we always build with KDU
if (INSTALL_PROPRIETARY)
  set(USE_KDU ON CACHE BOOL "Use Kakadu library.")
endif (INSTALL_PROPRIETARY)

include_guard()
create_target( ll::kdu )

if (USE_KDU)
  include(Prebuilt)
  use_prebuilt_binary(kdu)
  if (WINDOWS)
    set_target_libraries( ll::kdu kdu.lib)
  else (WINDOWS)
    set_target_libraries( ll::kdu libkdu.a)
  endif (WINDOWS)

  set_target_include_dirs( ll::kdu
          ${AUTOBUILD_INSTALL_DIR}/include/kdu
          ${LIBS_OPEN_DIR}/llkdu
          )
endif (USE_KDU)