diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-26 20:37:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-26 20:37:40 -0600 |
commit | a9fbdbd29b32151d366123ca637b2a06736d6e05 (patch) | |
tree | 9e86b48f7f6e776dcd9a1edea7705bfc93fd4a8d /src/ksvnwidgets | |
parent | 094b95b8a8d3d52ea4ce9035f8246dcdf054c7f5 (diff) | |
download | tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.tar.gz tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.zip |
Initial attempt at using the standard CMake system
Diffstat (limited to 'src/ksvnwidgets')
-rw-r--r-- | src/ksvnwidgets/CMakeLists.txt | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/src/ksvnwidgets/CMakeLists.txt b/src/ksvnwidgets/CMakeLists.txt index 0e2eabe..063fc95 100644 --- a/src/ksvnwidgets/CMakeLists.txt +++ b/src/ksvnwidgets/CMakeLists.txt @@ -1,46 +1,41 @@ -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${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 +# +################################################# -KDE3_ADD_UI_FILES( - tdesvn_shared_ui - logmessage.ui - ssltrustprompt.ui - authdlg.ui - encodingselector.ui - depthform.ui - revertform.ui +include_directories( + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/src + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/src/svnqt ) -SET(ksvnwidgetsrc - authdialogimpl.cpp - logmsg_impl.cpp - ssltrustprompt_impl.cpp - pwstorage.cpp - diffbrowser.cpp - diffbrowserdata.cpp - diffsyntax.cpp - encodingselector_impl.cpp - depthselector.cpp - revertform_impl.cpp - ) - -SET(ksvnwidgethdr - authdialogimpl.h - logmsg_impl.h - ssltrustprompt_impl.h - pwstorage.h - diffbrowser.h - diffbrowserdata.h - diffsyntax.h - encodingselector_impl.h - depthselector.h - revertform_impl.h +link_directories( + ${TQT_LIBRARY_DIRS} ) -KDE3_AUTOMOC(${ksvnwidgetsrc}) +##### ksvnwidgets ############################### + +file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h") -ADD_LIBRARY(ksvnwidgets STATIC ${ksvnwidgetsrc} ${tdesvn_shared_ui} ${ksvnwidgethdr}) -SET_TARGET_PROPERTIES(ksvnwidgets - PROPERTIES - COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) +tde_add_library( ksvnwidgets STATIC AUTOMOC + SOURCES authdialogimpl.cpp logmsg_impl.cpp ssltrustprompt_impl.cpp + pwstorage.cpp diffbrowser.cpp diffbrowserdata.cpp + diffsyntax.cpp encodingselector_impl.cpp depthselector.cpp + revertform_impl.cpp tdesvn_shared_ui logmessage.ui + ssltrustprompt.ui authdlg.ui encodingselector.ui + depthform.ui revertform.ui ${hdr} +# LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) -ADD_DEPENDENCIES(ksvnwidgets tdesvncfgreader) +ADD_DEPENDENCIES(ksvnwidgets tdesvncfgreader)
\ No newline at end of file |