diff options
author | Timothy Pearson <[email protected]> | 2011-11-26 20:37:40 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-26 20:37:40 -0600 |
commit | a9fbdbd29b32151d366123ca637b2a06736d6e05 (patch) | |
tree | 9e86b48f7f6e776dcd9a1edea7705bfc93fd4a8d /src/tdesvnd/CMakeLists.txt | |
parent | 094b95b8a8d3d52ea4ce9035f8246dcdf054c7f5 (diff) | |
download | tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.tar.gz tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.zip |
Initial attempt at using the standard CMake system
Diffstat (limited to 'src/tdesvnd/CMakeLists.txt')
-rw-r--r-- | src/tdesvnd/CMakeLists.txt | 99 |
1 files changed, 44 insertions, 55 deletions
diff --git a/src/tdesvnd/CMakeLists.txt b/src/tdesvnd/CMakeLists.txt index 87f7c6e..f686fed 100644 --- a/src/tdesvnd/CMakeLists.txt +++ b/src/tdesvnd/CMakeLists.txt @@ -1,55 +1,44 @@ -INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src/svnqt) -FILE(GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") -SET(kded_tdesvnd_src - tdesvnd_dcop.cpp - ${hdr} - ) - -KDE3_ADD_MOC_FILES(kded_tdesvnd_src tdesvnd_dcop.h) - -KDE3_ADD_DCOP_SKELS(kded_tdesvnd_src - tdesvnd_dcop.h) - -KDE3_ADD_KPART(kded_tdesvnd ${kded_tdesvnd_src}) - -TARGET_LINK_LIBRARIES(kded_tdesvnd - svnqt - ksvnwidgets - tdesvnhelpers - tdesvncfgreader - ${QT_AND_TDECORE_LIBS} ${KDE3_KIO_LIBRARY} ${KDE3_DCOP_LIBRARY} - ${KDE3_UI_LIBRARY} ${KDE3_WALLET_LIBRARY} - ${KDE3_KINIT_KDED_LIBRARY}) - -SET_TARGET_PROPERTIES(kded_tdesvnd - PROPERTIES - LINK_FLAGS "${LINK_NO_UNDEFINED} ${_BASE_LDADD} ${APR_EXTRA_LIBFLAGS} ${APU_EXTRA_LIBFLAGS} -module") - -INSTALL(TARGETS kded_tdesvnd - RUNTIME DESTINATION ${BIN_INSTALL_DIR} - LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR}) - -KDESVN_GENERATE_LIBTOOL_FILE(kded_tdesvnd) - -IF(KDE3_KDECONFIG_EXECUTABLE) - EXECUTE_PROCESS(COMMAND ${KDE3_KDECONFIG_EXECUTABLE} "--version" OUTPUT_VARIABLE output) - STRING(REGEX MATCH "KDE: [0-9]+\\.[0-9]+\\.[0-9]+" KDEVERSION "${output}") - STRING(REGEX REPLACE "^KDE: " "" KDEVERSION "${KDEVERSION}") -ENDIF(KDE3_KDECONFIG_EXECUTABLE) -SET(KDE_MIN_VERSION "3.5.0") -MACRO_ENSURE_VERSION(${KDE_MIN_VERSION} ${KDEVERSION} VERSION_OK) - -IF(VERSION_OK) - SET(ACTION_MENU "X-KDE-GetActionMenu=kded tdesvnd getActionMenu(KURL::List)") -ELSE(VERSION_OK) - SET(ACTION_MENU "Actions=Update;Commit;Add;Delete;Blame;Log;Diff;Checkout;Export;Info;Addnew;Switch;Revert;Rename;Tree") -ENDIF(VERSION_OK) - -CONFIGURE_FILE(tdesvn_subversion.desktop.in - ${CMAKE_CURRENT_BINARY_DIR}/tdesvn_subversion.desktop @ONLY) - -INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tdesvn_subversion.desktop - DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus) - -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvnd.desktop - DESTINATION ${SERVICES_INSTALL_DIR}/kded) +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/src + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_BINARY_DIR}/src/svnqt +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kio_ksvn ################################## + +file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") + +tde_add_kpart( kio_ksvn AUTOMOC + SOURCES kded_tdesvnd_src tdesvnd_dcop.cpp ${hdr} + LINK kio_ksvn kded_tdesvnd svnqt ksvnwidgets tdesvnhelpers tdesvncfgreader tdecore-shared tdeui-shared DCOP-shared kio-shared kwallet-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files ############################### + +set( ACTION_MENU "X-KDE-GetActionMenu=kded tdesvnd getActionMenu(KURL::List)" ) + +configure_file (tdesvn_subversion.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/tdesvn_subversion.desktop @ONLY ) + +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/tdesvn_subversion.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) +install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvnd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) |