diff --git a/nlohmann-json/lure.sh b/nlohmann-json/lure.sh index 8c71b5d..9310cc5 100644 --- a/nlohmann-json/lure.sh +++ b/nlohmann-json/lure.sh @@ -24,6 +24,14 @@ build() { } +check() { + cd "${srcdir}/build" + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON + make -j$(nproc) + ctest --output-on-failure +} + + package() { cd "${srcdir}/build" make "DESTDIR=$pkgdir" install