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
Utilities
KDebugSettings
Commits
6c91a728
Commit
6c91a728
authored
May 21, 2021
by
Laurent Montel
😁
Browse files
More target support
parent
1616e9ab
Pipeline
#62715
passed with stage
in 5 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
6c91a728
include_directories
(
${
CMAKE_BINARY_DIR
}
)
set
(
kdebugsettings
_debug_SRCS
)
add_library
(
lib
kdebugsettings
SHARED
)
ecm_qt_declare_logging_category
(
kdebugsettings
_debug_SRCS
HEADER kdebugsettings_debug.h IDENTIFIER KDEBUGSETTINGS_LOG CATEGORY_NAME log_kdebugsettings DESCRIPTION
"kdebugsettings"
EXPORT KDEBUGSETTINGS
)
set
(
kdebugsettings
_LIB_SRCS
ecm_qt_declare_logging_category
(
lib
kdebugsettings HEADER kdebugsettings_debug.h IDENTIFIER KDEBUGSETTINGS_LOG CATEGORY_NAME log_kdebugsettings DESCRIPTION
"kdebugsettings"
EXPORT KDEBUGSETTINGS
)
target_sources
(
lib
kdebugsettings
PRIVATE
kdebugsettingsloadingcategories.cpp
kdeloggingcategory.cpp
renamecategory.cpp
...
...
@@ -29,11 +29,8 @@ set(kdebugsettings_LIB_SRCS
savetoolbutton.cpp
groupmanagementdialog.cpp
groupmanagementwidget.cpp
${
kdebugsettings_debug_SRCS
}
)
add_library
(
libkdebugsettings
${
kdebugsettings_LIB_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
libkdebugsettings PROPERTIES UNITY_BUILD ON
)
endif
()
...
...
@@ -55,12 +52,7 @@ set_target_properties(libkdebugsettings
install
(
TARGETS libkdebugsettings
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
LIBRARY NAMELINK_SKIP
)
set
(
kdebugsettings_SRCS
main.cpp
${
kdebugsettings_debug_SRCS
}
)
add_executable
(
kdebugsettings
${
kdebugsettings_SRCS
}
)
add_executable
(
kdebugsettings main.cpp
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
kdebugsettings PROPERTIES UNITY_BUILD ON
)
endif
()
...
...
Write
Preview
Markdown
is supported
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