When OpenCL is detected, make sure all the includes / libs are tacked on the build lines

This commit is contained in:
Manuel Kraemer 2013-03-16 18:44:07 -07:00
parent d703ba0205
commit 8e9e832f94

View File

@ -72,6 +72,14 @@ set(PLATFORM_LIBRARIES
${GLFW_LIBRARIES}
)
if ( OPENCL_FOUND )
list(APPEND PLATFORM_LIBRARIES
${OPENCL_LIBRARIES}
)
include_directories( ${OPENCL_INCLUDE_DIRS} )
endif()
add_executable(osd_regression
${SOURCE_FILES}
)