comparison CMakeLists.txt @ 845:00a4720c4874

doc: rewrite documentation in manual pages, closes #1674 Get rid of markdown documentation and the custom generator tools, instead use raw manual pages.
author David Demelier <markand@malikania.fr>
date Mon, 08 Jul 2019 16:15:57 +0200
parents 2ecff01d4277
children 6af323b76970
comparison
equal deleted inserted replaced
844:dc6b42d7b97a 845:00a4720c4874
42 # libirccd-js - Javascript bindings library. 42 # libirccd-js - Javascript bindings library.
43 # libirccd-test - Helpers for unit tests. 43 # libirccd-test - Helpers for unit tests.
44 # libirccd-daemon - The irccd bot library. 44 # libirccd-daemon - The irccd bot library.
45 # irccd - The irccd executable. 45 # irccd - The irccd executable.
46 # irccdctl - The irccdctl utility. 46 # irccdctl - The irccdctl utility.
47 # man - Manual pages.
47 # plugins - Official irccd plugins. 48 # plugins - Official irccd plugins.
48 # systemd - Unit file for systemd. 49 # systemd - Unit file for systemd.
49 # tests - The unit tests. 50 # tests - The unit tests.
50 # 51 #
51 52
72 foreach (cfg ${CMAKE_CONFIGURATION_TYPES}) 73 foreach (cfg ${CMAKE_CONFIGURATION_TYPES})
73 string(TOUPPER CFG ${cfg}) 74 string(TOUPPER CFG ${cfg})
74 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CFG} ${CMAKE_BINARY_DIR}/bin/${cfg}) 75 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CFG} ${CMAKE_BINARY_DIR}/bin/${cfg})
75 endforeach () 76 endforeach ()
76 77
77 include(cmake/function/IrccdBuildHtml.cmake)
78 include(cmake/function/IrccdDefineExecutable.cmake) 78 include(cmake/function/IrccdDefineExecutable.cmake)
79 include(cmake/function/IrccdDefineLibrary.cmake) 79 include(cmake/function/IrccdDefineLibrary.cmake)
80 include(cmake/function/IrccdDefineMan.cmake) 80 include(cmake/function/IrccdDefineMan.cmake)
81 include(cmake/function/IrccdDefinePlugin.cmake) 81 include(cmake/function/IrccdDefinePlugin.cmake)
82 include(cmake/function/IrccdDefineTest.cmake) 82 include(cmake/function/IrccdDefineTest.cmake)
104 add_subdirectory(irccd) 104 add_subdirectory(irccd)
105 add_subdirectory(irccdctl) 105 add_subdirectory(irccdctl)
106 add_subdirectory(irccd-test) 106 add_subdirectory(irccd-test)
107 add_subdirectory(systemd) 107 add_subdirectory(systemd)
108 add_subdirectory(plugins) 108 add_subdirectory(plugins)
109 add_subdirectory(man)
109 110
110 if (IRCCD_WITH_TESTS) 111 if (IRCCD_WITH_TESTS)
111 include(CTest) 112 include(CTest)
112 add_subdirectory(tests) 113 add_subdirectory(tests)
113 endif () 114 endif ()
114 115
115 add_subdirectory(cmake/export) 116 add_subdirectory(cmake/export)
116 117
117 message("Compiling with the following flags:") 118 message("Building with the following flags:")
118 message(" General flags: ${CMAKE_CXX_FLAGS}") 119 message(" General flags: ${CMAKE_CXX_FLAGS}")
119 message(" Debug flags: ${CMAKE_CXX_FLAGS_DEBUG}") 120 message(" Debug flags: ${CMAKE_CXX_FLAGS_DEBUG}")
120 message(" Release flags: ${CMAKE_CXX_FLAGS_RELEASE}") 121 message(" Release flags: ${CMAKE_CXX_FLAGS_RELEASE}")
121 message("") 122 message("")
122 123
123 message("Compiling irccd with following options:") 124 message("Building irccd with following options:")
124 message(" Libedit: ${IRCCD_WITH_LIBEDIT_MSG}") 125 message(" Libedit: ${IRCCD_WITH_LIBEDIT_MSG}")
125 message(" OpenSSL: ${IRCCD_WITH_SSL_MSG}") 126 message(" OpenSSL: ${IRCCD_WITH_SSL_MSG}")
126 message(" Javascript: ${IRCCD_WITH_JS_MSG}") 127 message(" Javascript: ${IRCCD_WITH_JS_MSG}")
127 message(" Tests: ${IRCCD_WITH_TESTS_MSG}") 128 message(" Tests: ${IRCCD_WITH_TESTS_MSG}")
128 message(" User docs: ${IRCCD_WITH_HTML_MSG}") 129 message(" Man pages: ${IRCCD_WITH_MAN_MSG}")
129 message(" Doxygen: ${IRCCD_WITH_DOXYGEN_MSG}") 130 message(" Doxygen: ${IRCCD_WITH_DOXYGEN_MSG}")
130 message(" Package: ${IRCCD_PACKAGE_MSG}") 131 message(" Package: ${IRCCD_PACKAGE_MSG}")
131 message(" Systemd: ${IRCCD_WITH_SYSTEMD_MSG}") 132 message(" Systemd: ${IRCCD_WITH_SYSTEMD_MSG}")
132 message("") 133 message("")
133 134