gplugin/gplugin

Make help2man output optional
develop
2016-01-18, Gary Kramlich
a57b26d7b782
Parents c581a82f2df7
Children a75fae51e284
Make help2man output optional
--- a/CMakeLists.txt Mon Jan 18 21:19:46 2016 -0600
+++ b/CMakeLists.txt Mon Jan 18 21:19:54 2016 -0600
@@ -55,6 +55,12 @@
"On"
)
+option(
+ BUILD_HELP2MAN
+ "Whether or not to build man pages from --help output"
+ "on"
+)
+
###############################################################################
# Dependencies
###############################################################################
@@ -95,7 +101,10 @@
include(GNUInstallDirs)
include(FindPkgConfig)
include(PkgConfigVariable)
-include(help2man)
+
+if(BUILD_HELP2MAN)
+ include(help2man)
+endif(BUILD_HELP2MAN)
set(REQ_GLIB_VER 2.20.0)
--- a/gplugin-gtk/CMakeLists.txt Mon Jan 18 21:19:46 2016 -0600
+++ b/gplugin-gtk/CMakeLists.txt Mon Jan 18 21:19:54 2016 -0600
@@ -130,13 +130,15 @@
gplugin
)
-help2man(
- TARGET gplugin-gtk-viewer
- OUTPUT gplugin-gtk-viewer.1
- SECTION 1
- NAME "View installed plugins"
- HELP_OPTION --help-all
-)
+if(BUILD_HELP2MAN)
+ help2man(
+ TARGET gplugin-gtk-viewer
+ OUTPUT gplugin-gtk-viewer.1
+ SECTION 1
+ NAME "View installed plugins"
+ HELP_OPTION --help-all
+ )
+endif(BUILD_HELP2MAN)
install(TARGETS gplugin-gtk-viewer RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
--- a/gplugin/CMakeLists.txt Mon Jan 18 21:19:46 2016 -0600
+++ b/gplugin/CMakeLists.txt Mon Jan 18 21:19:54 2016 -0600
@@ -196,13 +196,15 @@
add_executable(gplugin-query gplugin-query.c)
target_link_libraries(gplugin-query ${GLIB_LIBRARIES} gplugin)
-help2man(
- TARGET gplugin-query
- OUTPUT gplugin-query.1
- SECTION 1
- NAME "Query installed plugins"
- HELP_OPTION --help-all
-)
+if(BUILD_HELP2MAN)
+ help2man(
+ TARGET gplugin-query
+ OUTPUT gplugin-query.1
+ SECTION 1
+ NAME "Query installed plugins"
+ HELP_OPTION --help-all
+ )
+endif(BUILD_HELP2MAN)
###############################################################################
# loader-tests static library