Skip to content

Commit c875c21

Browse files
committed
Work on readmes
1 parent 3924631 commit c875c21

File tree

3 files changed

+98
-103
lines changed

3 files changed

+98
-103
lines changed

ADAPT

Lines changed: 0 additions & 99 deletions
This file was deleted.

ADAPT.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
2+
To adapt this template to your own project, follow these steps:
3+
4+
5+
In the root directory adapt/change/do the following:
6+
--------------------------------------------------------------------
7+
8+
* [ ] Edit AUTHORS
9+
* [ ] Edit LICENSE
10+
* [ ] Edit README.md
11+
* [ ] Rename ./template-config.cmake -> <project>-config.cmake
12+
13+
CMakeLists.txt:
14+
* [ ] Set META_PROJECT_*
15+
* [ ] Set META_VERSION_*
16+
* [ ] Set META_AUTHOR_*
17+
* [ ] Set META_CMAKE_INIT_SHA (to the commit hash of the applied cmake-init template, e.g., to 83d7cbc29a6fcb74a98498e5b0fcebd953d9d5cc)
18+
* [ ] Adjust INSTALL_* to the desired install locations for all systems (defaults should be fine for a start)
19+
20+
21+
In subdirectory "./deploy/" do:
22+
--------------------------------------------------------------------
23+
24+
deploy/CMakeLists.txt:
25+
* [ ] Substitute pack-template.cmake -> pack-<project>.cmake
26+
* [ ] Exchange deploy/images/logo.ico
27+
* [ ] Exchange deploy/images/logo.bmp
28+
* [ ] Exchange deploy/images/logo.png
29+
* [ ] Rename deploy/packages/pack-template.cmake -> pack-<project>.cmake
30+
31+
deploy/packages/pack-<project>.cmake:
32+
* [ ] Adjust OPTION_PACK_GENERATOR to your liking for all systems
33+
* [ ] Adjust package options, e.g., CPACK_DEBIAN_PACKAGE_DEPENDS, CPACK_DEBIAN_PACKAGE_SECTION, CPACK_DEBIAN_PACKAGE_PRIORITY, CPACK_RPM_PACKAGE_LICENSE, CPACK_RPM_PACKAGE_GROUP, ...
34+
35+
In subdirectory "./source/" do:
36+
--------------------------------------------------------------------
37+
38+
* [ ] Rename template-version.h -> <project>-version.h
39+
40+
41+
In subdirectory "./source/examples/fibcmd" do:
42+
--------------------------------------------------------------------
43+
44+
source/fibcmd/main.cpp:
45+
* [ ] Substitute template-version.h -> <project>-version.h
46+
* [ ] Substitute TEMPLATE_VERSION -> <PROJECT>_VERSION
47+
48+
49+
In subdirectory "./source/codegeneration/" do:
50+
--------------------------------------------------------------------
51+
52+
* [ ] Remove/replace *_features.h for project-specific compiler feature detection headers (generate with current CMake and place here old cmake compatibility)
53+
54+
55+
In subdirectory "./docs/api-docs/" do:
56+
--------------------------------------------------------------------
57+
58+
docs/api-docs/doxyfile.in:
59+
* [ ] Adjust INPUT tag (list of doxygen annotated sources)
60+
61+
docs/api-docs/CMakeLists.txt
62+
* [ ] Adjust DEPENDS parameter to include all targets of project
63+
64+
65+
In subdirectory "./docs/manual/" do:
66+
--------------------------------------------------------------------
67+
68+
docs/manual/cmake-init.tex:
69+
* [ ] Rename to match own project name
70+
71+
docs/manual/CMakeLists.txt
72+
* [ ] Adjust source and pdf file name
73+
74+
75+
In subdirectory "./source/tests/" do:
76+
--------------------------------------------------------------------
77+
78+
source/tests/CMakeLists.txt:
79+
* [ ] Set META_PROJECT_NAME
80+
81+
82+
General stuff left to do:
83+
--------------------------------------------------------------------
84+
85+
* [ ] Rename and adjust targets in source/
86+
* [ ] Add new targets to source/CMakeLists.txt
87+
* [ ] Add new targets to ./{project}-config.cmake
88+
* [ ] Add new targets to the INPUT tag in docs/api-docs/doxyfile.in
89+
* [ ] Remove data/DATA_FOLDER.txt
90+
* [ ] Populate data/
91+
* [ ] Remove ADAPT.md

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The cmake-init template assumes you want to setup a project using
2323
* C/C++ compiler
2424

2525

26-
# Resources
26+
# Contents
2727

2828
* [Adaption Guide](#adaption-guide)
2929
* [Non-Goals](#non-goals)
@@ -48,22 +48,25 @@ The cmake-init template assumes you want to setup a project using
4848

4949
# Adaption Guide
5050

51+
The file [ADAPT.md](https://github.com/cginternals/cmake-init/blob/master/ADAPT.md) contains a task checklist for new projects.
52+
More generally, a new project should contain all core modules and, as needed, add the maintainer and development modules as required. cmake-init does not impose modularity rules for the cmake targets.
53+
5154
# Non-Goals
5255

5356
In order to be usable in a deterministic, idiomatic fashion, we avoid the following approaches and features:
5457

55-
## Super-Build
58+
### Super-Build
5659

5760
Due to the current semantics of targets and CMake internals, combining multiple
5861
cmake-init projects into one super-build project is not officially supported.
5962
There are limited and restricting workarounds.
6063
Actual solution: treat each project separately and use explicit dependency management.
6164

62-
## High Abstraction
65+
### High Abstraction
6366

6467
We use low abstractions to not build a language upon CMake a user has to learn.
6568

66-
## File Glob
69+
### File Glob
6770

6871
Explicit source specification prevents erroneous cases when adding and removing
6972
sources from the project tree.

0 commit comments

Comments
 (0)