Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KPMCore
Commits
cbea744b
Commit
cbea744b
authored
Jan 20, 2022
by
Andrius Štikonas
Browse files
Fix obsolete ECM variables
parent
a69bbb55
Pipeline
#126250
passed with stage
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
cbea744b
...
...
@@ -80,6 +80,7 @@ add_definitions(
-DQT_NO_CAST_TO_BYTEARRAY
-DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_KEYWORDS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
)
kde_enable_exceptions
()
...
...
@@ -92,7 +93,7 @@ add_subdirectory(src)
# create a Config.cmake and a ConfigVersion.cmake file and install them
set
(
INCLUDE_INSTALL_DIR
"include/kpmcore/"
)
set
(
CMAKECONFIG_INSTALL_DIR
"
${
CMAKECONFIG_INSTALL_PREFIX
}
/KPMcore"
)
set
(
CMAKECONFIG_INSTALL_DIR
"
${
KDE_INSTALL_CMAKEPACKAGEDIR
}
/KPMcore"
)
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/KPMcoreConfig.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/KPMcoreConfig.cmake"
...
...
src/CMakeLists.txt
View file @
cbea744b
...
...
@@ -33,11 +33,11 @@ ki18n_wrap_ui(kpmcore_SRCS ${gui_UIFILES})
add_library
(
kpmcore SHARED
${
kpmcore_SRCS
}
)
target_link_libraries
(
kpmcore PUBLIC
Qt
${
QT_MAJOR_VERSION
}
::Core
Qt::Core
PRIVATE
${
BLKID_LIBRARIES
}
Qt
${
QT_MAJOR_VERSION
}
::DBus
Qt
${
QT_MAJOR_VERSION
}
::Gui
Qt::DBus
Qt::Gui
KF5::I18n
KF5::CoreAddons
KF5::WidgetsAddons
...
...
@@ -48,16 +48,16 @@ generate_export_header(kpmcore
)
list
(
APPEND UTIL_LIB_HDRS
${
CMAKE_CURRENT_BINARY_DIR
}
/util/libpartitionmanagerexport.h
)
target_include_directories
(
kpmcore INTERFACE
"$<INSTALL_INTERFACE:
${
INCLU
DE_INSTALL_DIR
}
/kpmcore>"
)
target_include_directories
(
kpmcore INTERFACE
"$<INSTALL_INTERFACE:
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore>"
)
install
(
TARGETS kpmcore EXPORT KPMcoreTargets
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
FILES
${
CORE_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/core/ COMPONENT Devel
)
install
(
FILES
${
BACKEND_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/backend/ COMPONENT Devel
)
install
(
FILES
${
FS_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/fs/ COMPONENT Devel
)
install
(
FILES
${
JOBS_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/jobs/ COMPONENT Devel
)
install
(
FILES
${
OPS_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/ops/ COMPONENT Devel
)
install
(
FILES
${
UTIL_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/util/ COMPONENT Devel
)
install
(
FILES
${
GUI_LIB_HDRS
}
DESTINATION
${
INCLU
DE_INSTALL_DIR
}
/kpmcore/gui/ COMPONENT Devel
)
install
(
TARGETS kpmcore EXPORT KPMcoreTargets
${
KDE_
INSTALL_TARGETS_DEFAULT_ARGS
}
)
install
(
FILES
${
CORE_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/core/ COMPONENT Devel
)
install
(
FILES
${
BACKEND_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/backend/ COMPONENT Devel
)
install
(
FILES
${
FS_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/fs/ COMPONENT Devel
)
install
(
FILES
${
JOBS_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/jobs/ COMPONENT Devel
)
install
(
FILES
${
OPS_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/ops/ COMPONENT Devel
)
install
(
FILES
${
UTIL_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/util/ COMPONENT Devel
)
install
(
FILES
${
GUI_LIB_HDRS
}
DESTINATION
${
K
DE_INSTALL_
INCLUDE
DIR
}
/kpmcore/gui/ COMPONENT Devel
)
############################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment