annotate man/CMakeLists.txt @ 1201:67fa43998a91 default tip @

misc: update copyright years
author David Demelier <markand@malikania.fr>
date Thu, 04 Jan 2024 10:39:43 +0100
parents 1845a0509a93
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1098
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 # CMakeLists.txt -- CMake build system for irccd
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 #
1201
67fa43998a91 misc: update copyright years
David Demelier <markand@malikania.fr>
parents: 1183
diff changeset
4 # Copyright (c) 2013-2024 David Demelier <markand@malikania.fr>
1098
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 #
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 # copyright notice and this permission notice appear in all copies.
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 #
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 #
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 project(man)
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
20
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 set(
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 MANPAGES_1
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 ${man_SOURCE_DIR}/irccdctl.1
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 ${man_SOURCE_DIR}/irccd.1
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 )
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
26
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 set(
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 MANPAGES_3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 ${man_SOURCE_DIR}/irccd-api-chrono.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 ${man_SOURCE_DIR}/irccd-api-directory.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 ${man_SOURCE_DIR}/irccd-api-file.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 ${man_SOURCE_DIR}/irccd-api-hook.3
1168
5534d669b7af irccd: document Irccd.Http API
David Demelier <markand@malikania.fr>
parents: 1139
diff changeset
33 ${man_SOURCE_DIR}/irccd-api-http.3
1098
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 ${man_SOURCE_DIR}/irccd-api-logger.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 ${man_SOURCE_DIR}/irccd-api-plugin.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 ${man_SOURCE_DIR}/irccd-api-rule.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 ${man_SOURCE_DIR}/irccd-api-server.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 ${man_SOURCE_DIR}/irccd-api-system.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 ${man_SOURCE_DIR}/irccd-api-timer.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 ${man_SOURCE_DIR}/irccd-api-unicode.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 ${man_SOURCE_DIR}/irccd-api-util.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 ${man_SOURCE_DIR}/irccd-api.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 ${man_SOURCE_DIR}/libirccd-channel.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 ${man_SOURCE_DIR}/libirccd-event.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 ${man_SOURCE_DIR}/libirccd-hook.3
1121
3f6d64cdcf0d man: add libirccd-irccd.3 manual page
David Demelier <markand@malikania.fr>
parents: 1098
diff changeset
46 ${man_SOURCE_DIR}/libirccd-irccd.3
1098
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 ${man_SOURCE_DIR}/libirccd-log.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 ${man_SOURCE_DIR}/libirccd-rule.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 ${man_SOURCE_DIR}/libirccd-server.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 ${man_SOURCE_DIR}/libirccd-subst.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 ${man_SOURCE_DIR}/libirccd-util.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 ${man_SOURCE_DIR}/libirccd.3
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 )
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
54
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
55 set(
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
56 MANPAGES_5
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 ${man_SOURCE_DIR}/irccd.conf.5
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 )
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
59
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
60 set(
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
61 MANPAGES_7
1126
722fcb2930ea man: add irccd-cmake(7) manual page
David Demelier <markand@malikania.fr>
parents: 1121
diff changeset
62 ${man_SOURCE_DIR}/irccd-cmake.7
1098
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
63 ${man_SOURCE_DIR}/irccd-ipc.7
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
64 ${man_SOURCE_DIR}/irccd-templates.7
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
65 )
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
66
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
67 add_custom_target(
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 man
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
69 SOURCES
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
70 ${MANPAGES_1}
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
71 ${MANPAGES_3}
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
72 ${MANPAGES_5}
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
73 ${MANPAGES_7}
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
74 )
6c15d37b7518 cmake: switch back to CMake because of portability issues
David Demelier <markand@malikania.fr>
parents:
diff changeset
75
1139
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
76 function(process section files)
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
77 foreach (m ${MANPAGES_${section}})
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
78 cmake_path(GET m FILENAME base)
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
79 configure_file(${m} ${CMAKE_BINARY_DIR}/${base} @ONLY)
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
80 install(
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
81 FILES ${CMAKE_BINARY_DIR}/${base}
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
82 DESTINATION ${CMAKE_INSTALL_MANDIR}/man${section}
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
83 )
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
84 endforeach ()
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
85 endfunction()
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
86
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
87 process(1 "${MANPAGES_1}")
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
88 process(3 "${MANPAGES_3}")
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
89 process(5 "${MANPAGES_5}")
2e09e46de490 man: improvements
David Demelier <markand@malikania.fr>
parents: 1136
diff changeset
90 process(7 "${MANPAGES_7}")