[kwin] Add a KWIN_SOURCE_DIR to the CMakeLists.txt

This is used to get to KWin's sources instead of
KDEBASE_WORKSPACE_SOURCE_DIR.
This commit is contained in:
Martin Gräßlin 2014-03-18 12:08:14 +01:00
parent 642f643dff
commit 9874187099
4 changed files with 5 additions and 6 deletions

View file

@ -17,6 +17,7 @@ set(KWIN_VERSION_MAJOR 4)
set(KWIN_VERSION_MINOR 90)
set(KWIN_VERSION_PATCH 1)
set(KWIN_VERSION ${KWIN_VERSION_MAJOR}.${KWIN_VERSION_MINOR}.${KWIN_VERSION_PATCH} )
set(KWIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
if(KWIN_PLASMA_ACTIVE)
set(KWIN_BUILD_DECORATIONS OFF)

View file

@ -1,9 +1,9 @@
# need a header file from Aurorae sources
include_directories(
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/clients/aurorae/src/lib
${KWIN_SOURCE_DIR}/clients/aurorae/src/lib
)
set(AURORAE_SOURCE_DIR ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/clients/aurorae/src/lib/)
set(AURORAE_SOURCE_DIR ${KWIN_SOURCE_DIR}/clients/aurorae/src/lib/)
set(kcm_kwindecoration_PART_SRCS
kwindecoration.cpp

View file

@ -1,5 +1,3 @@
include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin )
set(
kcm_kwinscreenedges_PART_SRCS
main.cpp

View file

@ -1,4 +1,4 @@
include_directories( ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/tabbox ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/)
include_directories( ${KWIN_SOURCE_DIR}/tabbox ${KWIN_SOURCE_DIR})
########### next target ###############
@ -6,7 +6,7 @@ set(kcm_kwintabbox_PART_SRCS
main.cpp
layoutpreview.cpp
thumbnailitem.cpp
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/tabbox/tabboxconfig.cpp
${KWIN_SOURCE_DIR}/tabbox/tabboxconfig.cpp
)
qt5_wrap_ui( kcm_kwintabbox_PART_SRCS main.ui )