-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnethost.cmake
More file actions
16 lines (12 loc) · 920 Bytes
/
Copy pathnethost.cmake
File metadata and controls
16 lines (12 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_path(APPEND DOTNET_HOST_PACK_PATH "${DOTNET_ROOT_PATH}" "packs/Microsoft.NETCore.App.Host.${DOTNET_OS}-${DOTNET_ARCH}/${DOTNET_RUNTIME_VERSION}")
cmake_path(APPEND DOTNET_NATIVE_PATH "${DOTNET_HOST_PACK_PATH}" "runtimes/${DOTNET_OS}-${DOTNET_ARCH}/native")
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} "${DOTNET_NATIVE_PATH}/nethost.lib")
set(TORQUE_INCLUDE_DIRECTORIES ${TORQUE_INCLUDE_DIRECTORIES} "${DOTNET_NATIVE_PATH}")
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} PARENT_SCOPE)
set(TORQUE_INCLUDE_DIRECTORIES ${TORQUE_INCLUDE_DIRECTORIES} PARENT_SCOPE)
# This is a pain to use, but if we ever go about compiling nethost directly
# then it might come in handy
# set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "NETHOST_USE_AS_STATIC" PARENT_SCOPE)
# Transfer dll
install(FILES "${DOTNET_NATIVE_PATH}/nethost.dll"
DESTINATION "${TORQUE_APP_GAME_DIRECTORY}/nethost.dll")