From 768b25966529fb0758f662b6444f9681c147b2d5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:47:09 +0200 Subject: Adding debian version 1.7.2+ds-1. Signed-off-by: Daniel Baumann --- debian/tests/CMakeLists.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 debian/tests/CMakeLists.txt (limited to 'debian/tests/CMakeLists.txt') diff --git a/debian/tests/CMakeLists.txt b/debian/tests/CMakeLists.txt new file mode 100644 index 0000000..46241b7 --- /dev/null +++ b/debian/tests/CMakeLists.txt @@ -0,0 +1,30 @@ +CMAKE_MINIMUM_REQUIRED (VERSION 3.7) +PROJECT (libgit2_test) + +ADD_EXECUTABLE (libgit2_test libgit2_test.c) + +FIND_PACKAGE(PkgConfig) + +PKG_CHECK_MODULES(PC_LIBGIT2 libgit2) + +SET(LIBGIT2_DEFINITIONS ${PC_LIBGIT_CFLAGS_OTHER}) + +FIND_PATH(LIBGIT2_INCLUDE_DIR git2.h + HINTS ${PC_LIBGIT_INCLUDEDIR} ${PC_LIBGIT_INCLUDE_DIRS} + PATH_SUFFIXES libgit2 ) + +FIND_LIBRARY(LIBGIT2_LIBRARY NAMES git2 libgit2 + HINTS ${PC_LIBGIT_LIBDIR} ${PC_LIBGIT_LIBRARY_DIRS} ) + +SET(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARY} ) +SET(LIBGIT2_INCLUDE_DIRS ${LIBGIT2_INCLUDE_DIR} ) + +INCLUDE(FindPackageHandleStandardArgs) + +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibGit2 DEFAULT_MSG + LIBGIT2_LIBRARY LIBGIT2_INCLUDE_DIR) + + +mark_as_advanced(LIBGIT2_INCLUDE_DIR LIBGIT2_LIBRARY ) +include_directories(${LIBGIT2_INCLUDE_DIR}) +target_link_libraries (libgit2_test ${LIBGIT2_LIBRARY}) -- cgit v1.2.3