summaryrefslogtreecommitdiff
path: root/indra/cmake/URIPARSER.cmake
blob: 55b38fca28eb10d54c872751c33315d4caf0fcce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- cmake -*-

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

include(Prebuilt)

if (USESYSTEMLIBS)
  include(FindURIPARSER)
else (USESYSTEMLIBS)
  use_prebuilt_binary(uriparser)
  if (WINDOWS)
    set_target_libraries( uriparser::uriparser uriparser)
  elseif (LINUX)
    set_target_libraries( uriparser::uriparser uriparser)
  elseif (DARWIN)
    set_target_libraries( uriparser::uriparser liburiparser.dylib)
  endif (WINDOWS)
  set_target_include_dirs( uriparser::uriparser ${LIBS_PREBUILT_DIR}/include/uriparser)
endif (USESYSTEMLIBS)