From ac8f61ee91607e8f5289f39b07491fae0bf122ae Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Mon, 21 May 2012 08:53:38 +0000 Subject: [PATCH] Fixed Linux build --- modules/highgui/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 2e886295e0..7180b78c2a 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -199,6 +199,17 @@ if(WIN32) include_directories(AFTER "${OpenCV_SOURCE_DIR}/3rdparty/include") # for directshow in VS2005 and multi-monitor support on MinGW endif() +if(UNIX) + #these variables are set by CHECK_MODULE macro + foreach(P ${HIGHGUI_INCLUDE_DIRS}) + ocv_include_directories(${P}) + endforeach() + + foreach(P ${HIGHGUI_LIBRARY_DIRS}) + link_directories(${P}) + endforeach() +endif() + source_group("Src" FILES ${highgui_srcs} ${highgui_hdrs}) source_group("Include" FILES ${highgui_ext_hdrs}) ocv_set_module_sources(HEADERS ${highgui_ext_hdrs} SOURCES ${highgui_srcs} ${highgui_hdrs} ${grfmt_srcs} ${grfmt_hdrs})