Skip to content

Commit 30961d1

Browse files
committed
README: cmake info
1 parent c1cf798 commit 30961d1

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
@@ -145,6 +145,43 @@ $ autoreconf --install
145145

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

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

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

0 commit comments

Comments
 (0)