From 8e9e832f94fc57df201bd5ba49d0bd7512368111 Mon Sep 17 00:00:00 2001 From: Manuel Kraemer Date: Sat, 16 Mar 2013 18:44:07 -0700 Subject: [PATCH] When OpenCL is detected, make sure all the includes / libs are tacked on the build lines --- regression/osd_regression/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/regression/osd_regression/CMakeLists.txt b/regression/osd_regression/CMakeLists.txt index 7ee8412f..5c23abcc 100644 --- a/regression/osd_regression/CMakeLists.txt +++ b/regression/osd_regression/CMakeLists.txt @@ -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} )