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/svnfrontend | |
parent | 094b95b8a8d3d52ea4ce9035f8246dcdf054c7f5 (diff) | |
download | tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.tar.gz tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.zip |
Initial attempt at using the standard CMake system
Diffstat (limited to 'src/svnfrontend')
-rw-r--r-- | src/svnfrontend/CMakeLists.txt | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/src/svnfrontend/CMakeLists.txt b/src/svnfrontend/CMakeLists.txt index d418547..81ef448 100644 --- a/src/svnfrontend/CMakeLists.txt +++ b/src/svnfrontend/CMakeLists.txt @@ -1,7 +1,35 @@ -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/svnfrontend/fronthelpers ${CMAKE_BINARY_DIR}/src/svnqt) +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# -SET(svnfrontendsrc - ccontextlistener.cpp +include_directories( + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/src + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/svnfrontend/fronthelpers + ${CMAKE_BINARY_DIR}/src/svnqt +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### svnfrontend ############################### + +file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") + +tde_add_library( svnfrontend STATIC AUTOMOC + SOURCES ccontextlistener.cpp commandexec.cpp copymoveview_impl.cpp createrepo_impl.cpp @@ -56,9 +84,6 @@ SET(svnfrontendsrc threadcontextlistenerdata.cpp fillcachethread.cpp fillcachethread.h - ) - -SET(svnfrontendui copymoveview.ui createrepo_dlg.ui dumprepo_dlg.ui @@ -71,16 +96,9 @@ SET(svnfrontendui merge_dlg.ui blamedisplay.ui svnlogdlg.ui - ) - -FILE(GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") - -KDE3_AUTOMOC(${svnfrontendsrc}) -KDE3_ADD_UI_FILES(frontend_ui_sources ${svnfrontendui}) - -ADD_LIBRARY(svnfrontend STATIC ${svnfrontendsrc} ${frontend_ui_sources} ${hdr}) -SET_TARGET_PROPERTIES(svnfrontend - PROPERTIES - COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) + ${hdr} +# LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) ADD_DEPENDENCIES(svnfrontend ksvnwidgets) |