Workaround dxPtexViewer link dependencies

This commit is contained in:
David G. Yu 2015-05-31 10:20:41 -07:00
parent d470bc81b9
commit 808d0322fd

View File

@ -44,6 +44,15 @@ if (OPENCL_FOUND)
include_directories("${OPENCL_INCLUDE_DIRS}")
endif()
# XXX: This is unfortunate, we should probably refactor examples_common_obj
# to separate out the GL from the DX dependencies so that we don't end up
# in the situation where we have to link in GLFW for dxPtexViewer.
if (GLFW_FOUND)
list(APPEND PLATFORM_LIBRARIES
"${GLFW_LIBRARIES}"
)
endif()
set(SOURCE_FILES
dxPtexViewer.cpp
)