aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-03-16 18:03:47 +0200
committerYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-03-22 17:20:23 +0200
commitdc3e4e1d53021d936c1af9b481ddf31ddcc851d6 (patch)
tree7525a92beaf6333fafb7defb8e031ee28ecb23c2
parentf50edf45a0584b4882a640219f142c36d378387f (diff)
downloadkernel-shark-dc3e4e1d53021d936c1af9b481ddf31ddcc851d6.tar.gz
kernel-shark: Build "dataplot" only if OpenGL and GLUT are found
The "dataplot" example depends from those two packages. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r--examples/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index bc17635a..c2f4c016 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -20,9 +20,13 @@ message(STATUS "confogio")
add_executable(confio configio.c)
target_link_libraries(confio kshark)
-message(STATUS "dataplot")
-add_executable(dplot dataplot.cpp)
-target_link_libraries(dplot kshark-plot)
+if (OPENGL_FOUND AND GLUT_FOUND)
+
+ message(STATUS "dataplot")
+ add_executable(dplot dataplot.cpp)
+ target_link_libraries(dplot kshark-plot)
+
+endif (OPENGL_FOUND AND GLUT_FOUND)
if (Qt5Widgets_FOUND AND TT_FONT_FILE)