2015-09-02 02:13:50 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(dvcs/tests)
|
|
|
|
add_subdirectory(models/tests)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-07-26 14:23:17 +03:00
|
|
|
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=9509)
|
|
|
|
|
|
|
|
set(kdevplatformvcs_LIB_SRCS
|
|
|
|
vcsjob.cpp
|
|
|
|
vcsrevision.cpp
|
|
|
|
vcsannotation.cpp
|
|
|
|
vcspluginhelper.cpp
|
|
|
|
vcslocation.cpp
|
|
|
|
vcsdiff.cpp
|
|
|
|
vcsevent.cpp
|
|
|
|
vcsstatusinfo.cpp
|
|
|
|
widgets/vcsimportmetadatawidget.cpp
|
|
|
|
widgets/vcseventwidget.cpp
|
|
|
|
widgets/vcsdiffwidget.cpp
|
|
|
|
widgets/vcscommitdialog.cpp
|
|
|
|
widgets/vcsdiffpatchsources.cpp
|
|
|
|
widgets/vcslocationwidget.cpp
|
|
|
|
widgets/standardvcslocationwidget.cpp
|
|
|
|
widgets/flexibleaction.cpp
|
|
|
|
models/vcsannotationmodel.cpp
|
|
|
|
models/vcseventmodel.cpp
|
|
|
|
models/vcsfilechangesmodel.cpp
|
|
|
|
models/vcsitemeventmodel.cpp
|
|
|
|
models/projectchangesmodel.cpp
|
|
|
|
models/brancheslistmodel.cpp
|
|
|
|
dvcs/dvcsjob.cpp
|
|
|
|
dvcs/dvcsplugin.cpp
|
|
|
|
dvcs/ui/dvcsimportmetadatawidget.cpp
|
|
|
|
dvcs/ui/branchmanager.cpp
|
|
|
|
dvcs/ui/revhistory/commitView.cpp
|
|
|
|
dvcs/ui/revhistory/commitlogmodel.cpp
|
|
|
|
interfaces/ibasicversioncontrol.cpp
|
|
|
|
interfaces/icontentawareversioncontrol.cpp
|
2015-09-02 02:13:50 +03:00
|
|
|
widgets/vcscommitdialog.ui
|
|
|
|
widgets/vcseventwidget.ui
|
|
|
|
widgets/vcsdiffwidget.ui
|
|
|
|
dvcs/ui/dvcsimportmetadatawidget.ui
|
|
|
|
dvcs/ui/branchmanager.ui
|
2015-07-26 14:23:17 +03:00
|
|
|
)
|
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_library(kdevplatformvcs SHARED ${kdevplatformvcs_LIB_SRCS})
|
2015-07-26 14:23:17 +03:00
|
|
|
target_link_libraries(kdevplatformvcs LINK_PUBLIC
|
|
|
|
kdevplatformoutputview
|
|
|
|
kdevplatforminterfaces
|
|
|
|
)
|
|
|
|
target_link_libraries(kdevplatformvcs LINK_PRIVATE
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${KDE4_KPARTS_LIBS}
|
|
|
|
kdevplatformutil
|
|
|
|
kdevplatformproject
|
|
|
|
kdevplatformlanguage
|
|
|
|
)
|
|
|
|
set_target_properties(kdevplatformvcs PROPERTIES VERSION ${KDEVPLATFORM_LIB_VERSION} SOVERSION ${KDEVPLATFORM_LIB_SOVERSION})
|
|
|
|
install(TARGETS kdevplatformvcs EXPORT KDevPlatformTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
vcsexport.h
|
|
|
|
vcsjob.h
|
|
|
|
vcsrevision.h
|
|
|
|
vcsannotation.h
|
|
|
|
vcsdiff.h
|
|
|
|
vcspluginhelper.h
|
|
|
|
vcsevent.h
|
|
|
|
vcsstatusinfo.h
|
|
|
|
vcslocation.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
widgets/vcsimportmetadatawidget.h
|
|
|
|
widgets/vcseventwidget.h
|
|
|
|
widgets/vcsdiffwidget.h
|
|
|
|
widgets/vcscommitdialog.h
|
|
|
|
widgets/vcslocationwidget.h
|
|
|
|
widgets/standardvcslocationwidget.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs/widgets COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
models/vcsannotationmodel.h
|
|
|
|
models/vcseventmodel.h
|
|
|
|
models/vcsfilechangesmodel.h
|
|
|
|
models/vcsitemeventmodel.h
|
|
|
|
models/projectchangesmodel.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs/models COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
interfaces/ibasicversioncontrol.h
|
|
|
|
interfaces/icentralizedversioncontrol.h
|
|
|
|
interfaces/idistributedversioncontrol.h
|
|
|
|
interfaces/ibranchingversioncontrol.h
|
|
|
|
interfaces/ibrowsableversioncontrol.h
|
|
|
|
interfaces/irepositoryversioncontrol.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs/interfaces COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
dvcs/dvcsjob.h
|
|
|
|
dvcs/dvcsplugin.h
|
|
|
|
dvcs/dvcsevent.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs/dvcs COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
dvcs/ui/dvcsimportmetadatawidget.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kdevplatform/vcs/dvcs/ui COMPONENT Devel
|
|
|
|
)
|