kumquat-buildroot/package/catch2/catch2.mk
Michael Nosthoff c5b597d5d8 package/catch2: new package
Catch2 is a modern C++ unit testing framework which is increasing in
popularity.

This package is staging only and allows to build tests to be run on
the target.

- https://github.com/catchorg/Catch2

Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-02-17 15:57:08 +01:00

23 lines
731 B
Makefile

################################################################################
#
# catch2
#
################################################################################
CATCH2_VERSION = 3.1.1
CATCH2_SITE = $(call github,catchorg,Catch2,v$(CATCH2_VERSION))
CATCH2_INSTALL_STAGING = YES
CATCH2_INSTALL_TARGET = NO
CATCH2_LICENSE = BSL-1.0
CATCH2_LICENSE_FILES = LICENSE.txt
CATCH2_SUPPORTS_IN_SOURCE_BUILD = NO
# We force building a static library only as building a dynamic
# library is not really supported officially:
# https://github.com/catchorg/Catch2/blob/devel/docs/faq.md#can-i-compile-catch2-into-a-dynamic-library
CATCH2_CONF_OPTS = \
-DCATCH_INSTALL_DOCS=OFF \
-DBUILD_SHARED_LIBS=OFF
$(eval $(cmake-package))