summaryrefslogtreecommitdiff
path: root/indra/cmake/OpenJPEG.cmake
blob: 67292250bbfa256f6401aceb116ba82f04434f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- cmake -*-
include(Prebuilt)

if( TARGET openjpeg::openjpeg )
  return()
endif()
create_target( openjpeg::openjpeg )

if (USESYSTEMLIBS)
  include(FindOpenJPEG)
else (USESYSTEMLIBS)
  use_prebuilt_binary(openjpeg)
  
  set_target_libraries(openjpeg::openjpeg openjpeg )
  set_target_include_dirs( openjpeg::openjpeg ${LIBS_PREBUILT_DIR}/include/openjpeg)
endif (USESYSTEMLIBS)