diff --git a/CMakeLists.txt b/CMakeLists.txt index b0fa7bdbbd..0dc61dfc5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,10 @@ macro_log_feature(KWIN_HAVE_COMPOSITING "Compositing support" "X11 Compositing s macro_bool_to_01( OPENGL_FOUND KWIN_HAVE_OPENGL ) +if(OPENGL_FOUND) + include_directories(${OPENGL_INCLUDE_DIR}) +endif(OPENGL_FOUND) + # for things that are also used by kwin libraries configure_file(lib/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/lib/kwinconfig.h ) # for kwin internal things diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 420c96bb45..f38bf80b8b 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -8,7 +8,6 @@ set(kdecorations_LIB_SRCS kcommondecoration.cpp kcommondecoration_p.cpp ) - kde4_add_library(kdecorations SHARED ${kdecorations_LIB_SRCS}) target_link_libraries(kdecorations ${KDE4_KDEUI_LIBS} kephal) @@ -54,6 +53,7 @@ if(OPENGL_FOUND) if (DL_LIBRARY) target_link_libraries(kwineffects ${DL_LIBRARY}) endif(DL_LIBRARY) + include_directories(${OPENGL_INCLUDE_DIR}) endif(OPENGL_FOUND) if (X11_Xrender_FOUND) target_link_libraries(kwineffects ${X11_Xrender_LIB})