Skip to content

Commit d510c6f

Browse files
committed
README: cmake info
1 parent ed4885c commit d510c6f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README

+39
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,45 @@ $ 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.
142+
GNU Autotools support will be dropped in a future release.
143+
144+
Building with CMake requires a slightly different set of
145+
dependencies, needed both for compiling from a source
146+
tarball and from Git.
147+
148+
On Ubuntu, the minimal set of dependencies needed to build with CMake
149+
can be installed using:
150+
151+
----
152+
# apt install --no-install-recommends --no-install-suggests \
153+
asciidoc \
154+
cmake \
155+
gcc \
156+
libfido2-dev \
157+
libpam-dev \
158+
make \
159+
pkg-config
160+
----
161+
162+
The project can be built as follows:
163+
164+
----
165+
$ cmake .
166+
$ cmake --build .
167+
$ cmake --build . -t test # Optional: run unit tests
168+
----
169+
170+
The obtained artifacts can be installed as follows:
171+
172+
----
173+
# cmake --install .
174+
----
175+
137176
== Service Configuration
138177

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

0 commit comments

Comments
 (0)