aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-03-16 18:48:49 +0200
committerYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-03-22 17:20:23 +0200
commitd875a621f7e1197b601c83a6b1ee62c117cc037e (patch)
treea7e95310a499f18ec8f626d47cb21cbee388d4c1
parentdc3e4e1d53021d936c1af9b481ddf31ddcc851d6 (diff)
downloadkernel-shark-d875a621f7e1197b601c83a6b1ee62c117cc037e.tar.gz
kernel-shark: Always install the pkg-config descriptor
The pkg-config support is part of libkshark and has to be installed together with the other components of the library regardless of the GUI compilation. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r--src/CMakeLists.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c6607919..4ab0af26 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -38,6 +38,15 @@ install(FILES "${KS_DIR}/src/libkshark.h"
DESTINATION ${KS_INCLUDS_DESTINATION}
COMPONENT libkshark-devel)
+if (NOT PKG_CONGIG_DIR)
+ execute_process(COMMAND bash "-c" "pkg-config --variable pc_path pkg-config | cut -f 1 -d: -z"
+ OUTPUT_VARIABLE PKG_CONGIG_DIR)
+endif (NOT PKG_CONGIG_DIR)
+
+install(FILES "${KS_DIR}/libkshark.pc"
+ DESTINATION ${PKG_CONGIG_DIR}
+ COMPONENT libkshark-devel)
+
if (OPENGL_FOUND)
message(STATUS "libkshark-plot")
@@ -134,14 +143,6 @@ if (Qt5Widgets_FOUND AND Qt5Network_FOUND AND TT_FONT_FILE)
DESTINATION ${_INSTALL_PREFIX}/bin/
COMPONENT kernelshark)
- if (NOT PKG_CONGIG_DIR)
- execute_process(COMMAND bash "-c" "pkg-config --variable pc_path pkg-config | cut -f 1 -d: -z"
- OUTPUT_VARIABLE PKG_CONGIG_DIR)
- endif (NOT PKG_CONGIG_DIR)
- install(FILES "${KS_DIR}/libkshark.pc"
- DESTINATION ${PKG_CONGIG_DIR}
- COMPONENT libkshark-devel)
-
add_subdirectory(plugins)
set(PLUGINS ${PLUGINS} PARENT_SCOPE)