File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44cmake_minimum_required (VERSION 3.20 )
55
66project (bpfilter
7- VERSION 0.0.1
7+ VERSION 0.1.0
88 DESCRIPTION "BPF-based packet filtering framework"
99 LANGUAGES C
1010)
1111
12+ set (PROJECT_VERSION_TWEAK "-devel" )
13+
14+ message (NOTICE "bpfilter version ${CMAKE_PROJECT_VERSION}${PROJECT_VERSION_TWEAK } " )
15+
1216include (GNUInstallDirs )
1317
1418option (NO_DOCS "Disable documentation generation" 0 )
@@ -52,6 +56,12 @@ target_link_options(bf_global_flags
5256 $<$<CONFIG :debug >:-fsanitize =address -fsanitize =undefined >
5357)
5458
59+ configure_file (
60+ ${CMAKE_SOURCE_DIR } /src/version.h.in
61+ ${CMAKE_BINARY_DIR } /include/version.h
62+ @ONLY
63+ )
64+
5565add_subdirectory (src/core )
5666add_subdirectory (src/bpfilter )
5767add_subdirectory (src/libbpfilter )
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
55Name : bpfilter
66Description : BPF-based packet filtering framework
77URL : https://github.com/facebook/bpfilter
8- Version : @PROJECT_VERSION@
8+ Version : @PROJECT_VERSION@@PROJECT_VERSION_TWEAK@
99Cflags : -I ${ includedir}
1010Libs : -L ${ libdir} -l bpfilter
You can’t perform that action at this time.
0 commit comments