Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/CMakeLists.txt
Show All 20 Lines | |||||
21 | 21 | | |||
22 | if(HAVE_EPOXY_GLX) | 22 | if(HAVE_EPOXY_GLX) | ||
23 | set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp glx_context_attribute_builder.cpp) | 23 | set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp glx_context_attribute_builder.cpp) | ||
24 | endif() | 24 | endif() | ||
25 | 25 | | |||
26 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | 26 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | ||
27 | 27 | | |||
28 | add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES}) | 28 | add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES}) | ||
29 | set_target_properties(KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.platforms/") | ||||
29 | target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend Qt5::X11Extras XCB::CURSOR KF5::Crash) | 30 | target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend Qt5::X11Extras XCB::CURSOR KF5::Crash) | ||
30 | if(X11_Xinput_FOUND) | 31 | if(X11_Xinput_FOUND) | ||
31 | target_link_libraries(KWinX11Platform ${X11_Xinput_LIB}) | 32 | target_link_libraries(KWinX11Platform ${X11_Xinput_LIB}) | ||
32 | endif() | 33 | endif() | ||
33 | 34 | | |||
34 | if(HAVE_DL_LIBRARY) | 35 | if(HAVE_DL_LIBRARY) | ||
35 | target_link_libraries(KWinX11Platform ${DL_LIBRARY}) | 36 | target_link_libraries(KWinX11Platform ${DL_LIBRARY}) | ||
36 | endif() | 37 | endif() | ||
37 | 38 | | |||
38 | install( | 39 | install( | ||
39 | TARGETS | 40 | TARGETS | ||
40 | KWinX11Platform | 41 | KWinX11Platform | ||
41 | DESTINATION | 42 | DESTINATION | ||
42 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.platforms/ | 43 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.platforms/ | ||
43 | ) | 44 | ) |