-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
44 lines (32 loc) · 995 Bytes
/
CMakeLists.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
project(usd-uri-resolver)
cmake_minimum_required(VERSION 3.12)
if (UNIX AND NOT APPLE)
set(LINUX TRUE)
endif()
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/cmake")
find_package(USD REQUIRED)
if (LINUX)
set(DSO_EXT "so")
elseif (APPLE)
set(DSO_EXT "dylib")
else ()
set(DSO_EXT "dll")
endif ()
# TODO: Windows support.
add_compile_options(-Wall -DBUILD_OPTLEVEL_OPT -DBUILD_COMPONENT_SRC_PREFIX="")
option(ENABLE_RESOLVER_BUILD "Enabling building the uri resolver." On)
option(ENABLE_STRESSTEST_BUILD "Enabling building stress test for the resolver." Off)
set(EXTERNAL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external)
set(Z85_SRC
${CMAKE_CURRENT_SOURCE_DIR}/external/z85/z85_impl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/external/z85/z85.c)
if (ENABLE_RESOLVER_BUILD)
add_subdirectory(URIResolver)
endif ()
if (ENABLE_STRESSTEST_BUILD)
add_subdirectory(stressTest)
endif ()
add_subdirectory(external)
install(
FILES plugInfo.json
DESTINATION .)