1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: Kentaro Hayashi <kenhys@xdump.org>
Date: Mon, 12 Aug 2024 15:56:37 +0900
Subject: Add missing gksm
In Makefile, gksm was built and installed, but not
for CMakeLists.txt yet.
Subject: Add missing gksm
Author: Kentaro HAYASHI <kenhys@xdump.org>
Forwarded: https://github.com/sciapp/gr/pull/188
Signed-off-by: Kentaro Hayashi <kenhys@xdump.org>
---
CMakeLists.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d21c39a..d145afd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1479,6 +1479,10 @@ else()
string(APPEND GR_REPORT "- grplot: No (Qt6 and Qt5 not found)\n")
endif()
+add_executable(gksm lib/gks/gksm.c)
+target_link_libraries(gksm PUBLIC gks_shared Freetype::Freetype ZLIB::ZLIB)
+string(APPEND GR_REPORT "- gksm: Yes\n")
+
string(APPEND GR_REPORT "\nGRM integrations:\n")
if(TARGET XercesC::XercesC)
string(APPEND GR_REPORT "- Xerces-C++: Yes\n")
@@ -1684,6 +1688,13 @@ if(GR_INSTALL)
RENAME grplot.man.md
)
endif()
+ if(TARGET gksm)
+ install(
+ TARGETS gksm
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ BUNDLE DESTINATION Applications
+ )
+ endif()
install(FILES lib/gr/gr.h lib/gks/gks.h lib/gr3/gr3.h lib/grm/include/grm.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/)
install(DIRECTORY lib/grm/include/grm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/)
if(TARGET qt4gr
|