summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..a35f2fe
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,57 @@
+ADD_EXECUTABLE(kdesvnaskpass askpass/kdesvn-askpass.cpp)
+SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib${LIB_SUFFIX}/kde3)
+
+SET(kdesvnsrc
+ main.cpp
+ kdesvn.cpp
+ urldlg.cpp
+ commandline.cpp)
+
+SET(partsrc
+ kdesvn_events.cpp
+ kdesvn_events.h
+ kdesvn_part.cpp
+ kdesvnview.cpp
+ commandline_part.cpp)
+
+KDE3_AUTOMOC(${kdesvnsrc})
+KDE3_AUTOMOC(${partsrc})
+
+SET(partsrc ${partsrc} kdesvn_part.h kdesvnview.h commandline_part.h)
+SET(kdesvnsrc ${kdesvnsrc} kdesvn.h urldlg.h commandline.h)
+
+ADD_SUBDIRECTORY(svnqt)
+ADD_SUBDIRECTORY(ksvnwidgets)
+ADD_SUBDIRECTORY(settings)
+ADD_SUBDIRECTORY(svnfrontend)
+ADD_SUBDIRECTORY(helpers)
+ADD_SUBDIRECTORY(kdesvnd)
+ADD_SUBDIRECTORY(kiosvn)
+ADD_SUBDIRECTORY(pics)
+ADD_SUBDIRECTORY(icons)
+
+ADD_EXECUTABLE(kdesvn ${kdesvnsrc})
+
+KDE3_ADD_KPART(kdesvnpart WITH_PREFIX ${partsrc})
+TARGET_LINK_LIBRARIES(kdesvnpart svnfrontend kdesvnhelpers ksvnwidgets settingsdlgs kdesvncfgreader svnqt
+ ${QT_AND_KDECORE_LIBS} ${KDE3_KIO_LIBRARY} ${KDE3_PART_LIBRARY} ${KDE3_UI_LIBRARY} ${KDE3_WALLET_LIBRARY} )
+SET_TARGET_PROPERTIES(kdesvnpart
+ PROPERTIES
+ LINK_FLAGS "${_BASE_LDADD} ${APR_EXTRA_LIBFLAGS} ${APU_EXTRA_LIBFLAGS} ${LINK_NO_UNDEFINED}")
+
+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src/svnqt)
+
+KDESVN_GENERATE_LIBTOOL_FILE(kdesvnpart)
+
+
+TARGET_LINK_LIBRARIES(kdesvnaskpass ${QT_AND_KDECORE_LIBS} ${KDE3_UI_LIBRARY})
+TARGET_LINK_LIBRARIES(kdesvn ${QT_AND_KDECORE_LIBS} ${KDE3_UI_LIBRARY} ${KDE3_PART_LIBRARY} ${KDE3_DCOP_LIBRARY} ${KDE3_KIO_LIBRARY})
+
+INSTALL(TARGETS kdesvn kdesvnaskpass kdesvnpart
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
+ LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
+
+# the resources
+INSTALL(FILES kdesvnui.rc DESTINATION ${DATA_INSTALL_DIR}/kdesvn)
+INSTALL(FILES kdesvn_part.rc DESTINATION ${DATA_INSTALL_DIR}/kdesvnpart)
+INSTALL(FILES kdesvn.desktop DESTINATION ${XDG_APPS_DIR})