Commit 6a4b58fa authored by Yoann Laissus's avatar Yoann Laissus
Browse files

Reorganise kdf files with a src and a desktop folder.

Delete the unused unix_outputs dir and CTestConfig.cmake.
parent df319336
......@@ -14,7 +14,7 @@ endif(NOT UNIX)
set (QT_MIN_VERSION "5.2.0")
set (KF5_MIN_VERSION "5.6.0")
set(ECM_MIN_VERSION "1.6.0")
set (ECM_MIN_VERSION "1.6.0")
find_package(ECM ${ECM_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
......@@ -31,7 +31,7 @@ include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KDF
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdf_version.h"
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kdf_version.h"
)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KDFPRIVATE
......@@ -57,112 +57,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
XmlGui
)
add_subdirectory(desktop)
add_subdirectory(doc)
add_subdirectory(pics)
########### kdfprivate library ###############
set(kdfprivate_SRCS
kdfwidget.cpp
kdfconfig.cpp
kdfitemdelegate.cpp
kdfsortproxymodel.cpp
mntconfig.cpp
disklist.cpp
disks.cpp
optiondialog.cpp
stdoption.cpp
)
ecm_qt_declare_logging_category(kdfprivate_SRCS
HEADER kdfprivate_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.private)
ki18n_wrap_ui(kdfprivate_SRCS
kdfconfig.ui
mntconfig.ui )
add_library(kdfprivate ${kdfprivate_SRCS})
generate_export_header(kdfprivate BASE_NAME kdfprivate)
target_link_libraries(kdfprivate PUBLIC
Qt5::Core
KF5::Completion
KF5::ConfigWidgets
KF5::I18n
KF5::IconThemes
KF5::KIOCore
KF5::WidgetsAddons
)
set_target_properties(kdfprivate PROPERTIES
VERSION ${KDFPRIVATE_VERSION_STRING}
SOVERSION ${KDFPRIVATE_SOVERSION}
)
install(TARGETS kdfprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
########### kdf executable ###############
set(kdf_SRCS kdf.cpp)
ecm_qt_declare_logging_category(kdf_SRCS
HEADER kdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.main)
add_executable(kdf ${kdf_SRCS})
target_link_libraries(kdf
kdfprivate
Qt5::Core
KF5::XmlGui
)
install(TARGETS kdf ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kwikdisk executable ###############
set(kwikdisk_SRCS kwikdisk.cpp)
ecm_qt_declare_logging_category(kwikdisk_SRCS
HEADER kwikdisk_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kwikdisk)
add_executable(kwikdisk ${kwikdisk_SRCS})
target_link_libraries(kwikdisk
kdfprivate
Qt5::Core
KF5::KIOWidgets
KF5::Notifications
)
install(TARGETS kwikdisk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kdf KCM ###############
set(kcm_kdf_PART_SRCS kcmdf.cpp)
ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
HEADER kcmdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kcm)
add_library(kcm_kdf ${kcm_kdf_PART_SRCS})
target_link_libraries(kcm_kdf
kdfprivate
Qt5::Core
)
install(TARGETS kcm_kdf DESTINATION ${KDE_INSTALL_PLUGINDIR})
install( FILES kcmdf.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
########### install files ###############
install( PROGRAMS org.kde.kdf.desktop org.kde.kwikdisk.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install( FILES kdfui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdf)
add_subdirectory(src)
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "kdf")
set(CTEST_NIGHTLY_START_TIME "20:00:00 CET")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=kdf")
set(CTEST_DROP_SITE_CDASH TRUE)
########### install files ###############
install( PROGRAMS org.kde.kdf.desktop org.kde.kwikdisk.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install( FILES kdfui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdf)
install( FILES kcmdf.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
########### kdfprivate library ###############
set(kdfprivate_SRCS
kdfwidget.cpp
kdfconfig.cpp
kdfitemdelegate.cpp
kdfsortproxymodel.cpp
mntconfig.cpp
disklist.cpp
disks.cpp
optiondialog.cpp
stdoption.cpp
)
ecm_qt_declare_logging_category(kdfprivate_SRCS
HEADER kdfprivate_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.private)
ki18n_wrap_ui(kdfprivate_SRCS
kdfconfig.ui
mntconfig.ui )
add_library(kdfprivate ${kdfprivate_SRCS})
generate_export_header(kdfprivate BASE_NAME kdfprivate)
target_link_libraries(kdfprivate PUBLIC
Qt5::Core
KF5::Completion
KF5::ConfigWidgets
KF5::I18n
KF5::IconThemes
KF5::KIOCore
KF5::WidgetsAddons
)
set_target_properties(kdfprivate PROPERTIES
VERSION ${KDFPRIVATE_VERSION_STRING}
SOVERSION ${KDFPRIVATE_SOVERSION}
)
install(TARGETS kdfprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
########### kdf executable ###############
set(kdf_SRCS kdf.cpp)
ecm_qt_declare_logging_category(kdf_SRCS
HEADER kdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.main)
add_executable(kdf ${kdf_SRCS})
target_link_libraries(kdf
kdfprivate
Qt5::Core
KF5::XmlGui
)
install(TARGETS kdf ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kwikdisk executable ###############
set(kwikdisk_SRCS kwikdisk.cpp)
ecm_qt_declare_logging_category(kwikdisk_SRCS
HEADER kwikdisk_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kwikdisk)
add_executable(kwikdisk ${kwikdisk_SRCS})
target_link_libraries(kwikdisk
kdfprivate
Qt5::Core
KF5::KIOWidgets
KF5::Notifications
)
install(TARGETS kwikdisk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
########### kdf KCM ###############
set(kcm_kdf_PART_SRCS kcmdf.cpp)
ecm_qt_declare_logging_category(kcm_kdf_PART_SRCS
HEADER kcmdf_debug.h
IDENTIFIER KDF
CATEGORY_NAME kdf.kcm)
add_library(kcm_kdf ${kcm_kdf_PART_SRCS})
target_link_libraries(kcm_kdf
kdfprivate
Qt5::Core
)
install(TARGETS kcm_kdf DESTINATION ${KDE_INSTALL_PLUGINDIR})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment