Mercurial > irccd
comparison doc/CMakeLists.txt @ 0:1158cffe5a5e
Initial import
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 08 Feb 2016 16:43:14 +0100 |
parents | |
children | 113d909fdfe1 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1158cffe5a5e |
---|---|
1 # | |
2 # CMakeLists.txt -- CMake build system for irccd | |
3 # | |
4 # Copyright (c) 2013-2016 David Demelier <markand@malikania.fr> | |
5 # | |
6 # Permission to use, copy, modify, and/or distribute this software for any | |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 | |
19 project(doc) | |
20 | |
21 # Meta targets `docs` | |
22 add_custom_target( | |
23 docs ALL | |
24 COMMENT "Building irccd documentation" | |
25 SOURCES | |
26 ${doc_SOURCE_DIR}/procs/README.md | |
27 ${doc_SOURCE_DIR}/procs/00.tests.md | |
28 ${doc_SOURCE_DIR}/procs/00.new-release.md | |
29 ${doc_SOURCE_DIR}/procs/20.options.md | |
30 ${doc_SOURCE_DIR}/procs/30.options.md | |
31 ${doc_SOURCE_DIR}/procs/60.new-command.md | |
32 ) | |
33 | |
34 # | |
35 # Set the DOC_OUTPUT variable to where files will be installed | |
36 # ------------------------------------------------------------------- | |
37 # | |
38 # Depending if irccd is relocatable or not, documentation generated will be in a different folder, either | |
39 # in the real fakeroot documentation directory or not. | |
40 # | |
41 | |
42 if (IRCCD_RELOCATABLE) | |
43 set(DOC_OUTPUT ${CMAKE_BINARY_DIR}/fakeroot/${WITH_DOCDIR}) | |
44 else () | |
45 set(DOC_OUTPUT ${CMAKE_BINARY_DIR}/docs) | |
46 endif () | |
47 | |
48 # Needed for fakeroot | |
49 if (WITH_DOXYGEN) | |
50 add_subdirectory(doxygen) | |
51 endif () | |
52 | |
53 add_subdirectory(examples) | |
54 add_subdirectory(man) | |
55 | |
56 if (WITH_HTML) | |
57 add_subdirectory(html) | |
58 endif () |