diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-20 03:59:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-20 03:59:04 +0000 |
commit | 5379c37cfc91f24716af951dd08503f65f7575d7 (patch) | |
tree | 59288babdc8ae3bf4b529b7ced17509450f05679 /kscreensaver/kxsconfig/CMakeLists.txt | |
parent | 99a9c9fb9a9ce322e8b43fc101877c6a78622bca (diff) | |
download | tdeartwork-5379c37cfc91f24716af951dd08503f65f7575d7.tar.gz tdeartwork-5379c37cfc91f24716af951dd08503f65f7575d7.zip |
Commit initial kdeartwork CMake support, courtesy of Golubev Alexander
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1259766 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/kxsconfig/CMakeLists.txt')
-rw-r--r-- | kscreensaver/kxsconfig/CMakeLists.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/kscreensaver/kxsconfig/CMakeLists.txt b/kscreensaver/kxsconfig/CMakeLists.txt new file mode 100644 index 00000000..99f44e54 --- /dev/null +++ b/kscreensaver/kxsconfig/CMakeLists.txt @@ -0,0 +1,66 @@ +################################################# +# +# (C) 2011 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${X11_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${X11_LIBRARY_DIR} +) + +##### kxsconfig ################################# +set( target kxsconfig ) + +set( ${target}_SRCS + kxscontrol.cpp kxsitem.cpp kxsxml.cpp kxsconfig.cpp ) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared ${X11_Xt_LIB} + DESTINATION ${BIN_INSTALL_DIR} +) + +##### kxsrun #################################### +set( target kxsrun ) + +set( ${target}_SRCS + kxsrun.cpp kxscontrol.cpp kxsitem.cpp kxsxml.cpp ) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +##### install desktops ########################## +# code from kde4 +FILE(GLOB _desktopfiles "ScreenSavers/*.desktop" ) +foreach(_currentdesktopfile ${_desktopfiles}) + STRING(REGEX REPLACE ".desktop" "" _newitem "${_currentdesktopfile}" ) + #MESSAGE(STATUS "newItem <${_newitem}>") + GET_FILENAME_COMPONENT(_screensaverName ${_newitem} NAME_WE) + #MESSAGE(STATUS "name without extension + find_file(XSCREENSAVER_FILE_FOUND ${_screensaverName}.xml PATHS ${XSCREENSAVER_CONFIG_DIR} ) + if(XSCREENSAVER_FILE_FOUND) + MESSAGE(STATUS "xscreensaver name ${_screensaverName} found") + install(FILES ${_currentdesktopfile} DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers ) + else(XSCREENSAVER_FILE_FOUND) + MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found") + endif(XSCREENSAVER_FILE_FOUND) + unset(XSCREENSAVER_FILE_FOUND CACHE) +endforeach(_currentdesktopfile ${_desktopfiles}) + |