forked from CESNET/ipfixcol2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/hutak-unirec-array' into devel
- Loading branch information
Showing
9 changed files
with
738 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
extra_plugins/output/unirec/CMakeModules/FindLibUnirec.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# LIBUNIREC_FOUND - System has libfds | ||
# LIBUNIREC_INCLUDE_DIRS - The libfds include directories | ||
# LIBUNIREC_LIBRARIES - The libraries needed to use libfds | ||
# LIBUNIREC_DEFINITIONS - Compiler switches required for using libfds | ||
|
||
# use pkg-config to get the directories and then use these values | ||
# in the find_path() and find_library() calls | ||
find_package(PkgConfig QUIET) | ||
if (PKG_CONFIG_FOUND) | ||
pkg_check_modules(PC_UNIREC QUIET "unirec") | ||
endif() | ||
set(LIBUNIREC_DEFINITIONS ${PC_UNIREC_CFLAGS_OTHER}) | ||
|
||
find_path( | ||
UNIREC_INCLUDE_DIR unirec/unirec.h | ||
HINTS ${PC_UNIREC_INCLUDEDIR} ${PC_UNIREC_INCLUDE_DIRS} | ||
PATH_SUFFIXES include | ||
) | ||
|
||
find_library( | ||
UNIREC_LIBRARY NAMES unirec libunirec | ||
HINTS ${PC_UNIREC_LIBDIR} ${PC_UNIREC_LIBRARY_DIRS} | ||
PATH_SUFFIXES lib lib64 | ||
) | ||
|
||
if (PC_UNIREC_VERSION) | ||
# Version extracted from pkg-config | ||
set(UNIREC_VERSION_STRING ${PC_UNIREC_VERSION}) | ||
endif() | ||
|
||
|
||
# handle the QUIETLY and REQUIRED arguments and set LIBUNIREC_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LibUnirec | ||
REQUIRED_VARS UNIREC_LIBRARY UNIREC_INCLUDE_DIR | ||
VERSION_VAR UNIREC_VERSION_STRING | ||
) | ||
|
||
set(LIBUNIREC_LIBRARIES ${UNIREC_LIBRARY}) | ||
set(LIBUNIREC_INCLUDE_DIRS ${UNIREC_INCLUDE_DIR}) | ||
mark_as_advanced(UNIREC_INCLUDE_DIR UNIREC_LIBRARY) |
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
extra_plugins/output/unirec/CMakeModules/try_run/trap_version.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <libtrap/trap.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
int | ||
main(int argc, char *argv[]) | ||
{ | ||
printf("%s", trap_version); | ||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.