forked from Unity-Technologies/usd-unity-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (31 loc) · 880 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (31 loc) · 880 Bytes
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
project(usdnet)
SET(USD_NET_SRC ${CMAKE_SOURCE_DIR}/package/com.unity.formats.usd/Dependencies/USD.NET)
add_subdirectory(generated)
set(USD_NET_DLL USD.NET.dll)
add_custom_command(
OUTPUT ${USD_NET_DLL}
COMMAND ${MCS} -noconfig -langversion:4 -nostdlib+
-warn:4 -optimize+ -debug -out:${USD_NET_DLL} -target:library -unsafe
${SWIG_GENERATED_FILES}
${USD_NET_SRC}/collections/*.cs
${USD_NET_SRC}/pooling/*.cs
${USD_NET_SRC}/serialization/*.cs
${USD_NET_SRC}/Properties/*.cs
${USD_NET_SRC}/*.cs
/reference:${MONO_MSCORLIB}
/reference:${MONO_SYSTEM_CORE_LIB}
/reference:${MONO_SYSTEM_LIB}
COMMAND_EXPAND_LISTS
DEPENDS ${USD_CS}
)
add_custom_target(
USD_NET
ALL DEPENDS
${USD_NET_DLL}
)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/USD.NET.dll
DESTINATION
${CMAKE_CURRENT_LIST_DIR}
)