Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
9eeaa4f4
Commit
9eeaa4f4
authored
Sep 09, 2019
by
Laurent Montel
Browse files
Generate a private lib
parent
c66ec781
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9eeaa4f4
...
...
@@ -32,6 +32,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include
(
KDECMakeSettings
)
include
(
ECMAddTests
)
include
(
ECMQtDeclareLoggingCategory
)
include
(
GenerateExportHeader
)
add_definitions
(
-DTRANSLATION_DOMAIN=
"kdebugsettings"
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000
)
...
...
@@ -39,6 +40,10 @@ add_definitions(-DQT_NO_FOREACH)
configure_file
(
config-kdebugsettings.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config-kdebugsettings.h
)
set
(
KDEBUGSETTINGS_LIB_VERSION
"
${
KDE_APPLICATIONS_VERSION
}
"
)
set
(
KDEBUGSETTINGS_LIB_SOVERSION
"5"
)
add_subdirectory
(
src
)
if
(
BUILD_TESTING
)
add_subdirectory
(
autotests
)
...
...
src/CMakeLists.txt
View file @
9eeaa4f4
include_directories
(
${
CMAKE_BINARY_DIR
}
)
set
(
kdebugsettingsprivate_LIB_SRCS
)
add_library
(
kdebugsettingsprivate
${
kdebugsettingsprivate_LIB_SRCS
}
)
generate_export_header
(
kdebugsettingsprivate BASE_NAME kdebugsettingsprivate
)
target_link_libraries
(
kdebugsettingsprivate
Qt5::Core
)
set_target_properties
(
kdebugsettingsprivate
PROPERTIES OUTPUT_NAME kdebugsettingsprivate VERSION
${
KDEBUGSETTINGS_LIB_VERSION
}
SOVERSION
${
KDEBUGSETTINGS_LIB_SOVERSION
}
)
install
(
TARGETS kdebugsettingsprivate
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
LIBRARY NAMELINK_SKIP
)
set
(
kdebugsettings_SRCS
main.cpp
kdebugsettingsdialog.cpp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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