summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuzhenjun <[email protected]>2023-10-13 09:45:46 +0800
committerzhuzhenjun <[email protected]>2023-10-13 10:24:25 +0800
commitcfaf003d4f32aa55d522e3f09dbd28aa020714a0 (patch)
tree701f0a4b7d76a332686842ffd291bc85342c2f25
parent8b8627b0d8e06cb2d1073b2e86741dad8c39d4f6 (diff)
package: rpm name MESA_osfp -> libosfpv1.2.0
library: libMESA_osfp -> libosfp
-rw-r--r--CMakeLists.txt8
-rw-r--r--README.md4
2 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a87bc55..a500b69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,11 @@
cmake_minimum_required (VERSION 2.8)
-set(lib_name MESA_osfp)
+set(lib_name osfp)
project (${lib_name})
set(LIB_MAJOR_VERSION 1)
-set(LIB_MINOR_VERSION 1)
+set(LIB_MINOR_VERSION 2)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(Version)
@@ -73,7 +73,7 @@ target_link_libraries(${lib_name}_test ${lib_name}_static)
enable_testing()
-add_test(NAME sample COMMAND MESA_osfp_sample)
-add_test(NAME test COMMAND MESA_osfp_test -f ../fp.json -t ../data.json)
+add_test(NAME sample COMMAND ${lib_name}_sample)
+add_test(NAME test COMMAND ${lib_name}_test -f ../fp.json -t ../data.json)
include(Package)
diff --git a/README.md b/README.md
index 6936a78..36d887e 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ yum install -y ./build/*.rpm
## library usage
```
-gcc -I./src example/sample.c -o sample -L./build -lMESA_osfp; cat example/sample.c
+gcc -I./src example/sample.c -o sample -L./build -losfp; cat example/sample.c
LD_LIBRARY_PATH=${PWD}/build ./sample
```
@@ -21,5 +21,5 @@ LD_LIBRARY_PATH=${PWD}/build ./sample
```
# load the fingerprint file and capture on eth0, filter tcp port 8888
-./build/MESA_osfp_example -f /var/lib/MESA_osfp/fp.json -i eth0 "tcp port 8888"
+./build/osfp_example -f /var/lib/MESA_osfp/fp.json -i eth0 "tcp port 8888"
```