Skip to content

Commit cca956f

Browse files
committed
README: cmake info
1 parent 8e74680 commit cca956f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README

+37
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,43 @@ $ autoreconf --install
134134

135135
Then build as usual, see above under <<building,Building from a source tarball>>.
136136

137+
== Building with CMake
138+
139+
A migration of the build system from GNU Autotools to CMake is currently in
140+
process.
141+
Versions from 1.4.0 and above can be built using CMake, while
142+
GNU Autotools will be deprecated in a future release.
143+
144+
Building with CMake requires a different set of dependencies, that
145+
are needed both when compiling from a source tarball and when building from Git.
146+
147+
On Ubuntu, the dependencies needed to build with CMake can be installed using:
148+
149+
----
150+
# apt install --no-install-recommends --no-install-suggests \
151+
asciidoc \
152+
cmake \
153+
gcc \
154+
libfido2-dev \
155+
libpam-dev \
156+
make \
157+
pkg-config
158+
----
159+
160+
The project can be built as follows:
161+
162+
----
163+
$ cmake .
164+
$ cmake --build .
165+
$ cmake --build . -t test # Optional: run unit tests
166+
----
167+
168+
The obtained artifacts can be installed as follows:
169+
170+
----
171+
# cmake --install .
172+
----
173+
137174
== Service Configuration
138175

139176
Create a file for a new service in `/etc/pam.d/` or edit an already

0 commit comments

Comments
 (0)