Skip to content

Commit c1c1b07

Browse files
authored
Merge pull request #2 from naresh97/searchDevices
added search for devices functionality
2 parents 99add45 + b9db781 commit c1c1b07

14 files changed

Lines changed: 9618 additions & 0 deletions

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
CMakeLists.txt.user
2+
CMakeCache.txt
3+
CMakeFiles
4+
CMakeScripts
5+
Testing
6+
Makefile
7+
cmake_install.cmake
8+
install_manifest.txt
9+
compile_commands.json
10+
CTestTestfile.cmake
11+
_deps
12+
.idea/**/workspace.xml
13+
.idea/**/tasks.xml
14+
.idea/**/usage.statistics.xml
15+
.idea/**/dictionaries
16+
.idea/**/shelf
17+
.idea/**/contentModel.xml
18+
.idea/**/dataSources/
19+
.idea/**/dataSources.ids
20+
.idea/**/dataSources.local.xml
21+
.idea/**/sqlDataSources.xml
22+
.idea/**/dynamic.xml
23+
.idea/**/uiDesigner.xml
24+
.idea/**/dbnavigator.xml
25+
.idea/**/gradle.xml
26+
.idea/**/libraries
27+
cmake-build-*/
28+
.idea/**/mongoSettings.xml
29+
*.iws
30+
out/
31+
.idea_modules/
32+
atlassian-ide-plugin.xml
33+
.idea/replstate.xml
34+
com_crashlytics_export_strings.xml
35+
crashlytics.properties
36+
crashlytics-build.properties
37+
fabric.properties
38+
.idea/httpRequests
39+
.idea/caches/build_file_checksums.ser
40+
*.d
41+
*.slo
42+
*.lo
43+
*.o
44+
*.obj
45+
*.gch
46+
*.pch
47+
*.so
48+
*.dylib
49+
*.dll
50+
*.mod
51+
*.smod
52+
*.lai
53+
*.la
54+
*.a
55+
*.lib
56+
*.exe
57+
*.out
58+
*.app
59+
*.ko
60+
*.elf
61+
*.ilk
62+
*.map
63+
*.exp
64+
*.so.*
65+
*.i*86
66+
*.x86_64
67+
*.hex
68+
*.dSYM/
69+
*.su
70+
*.idb
71+
*.pdb
72+
*.mod*
73+
*.cmd
74+
.tmp_versions/
75+
modules.order
76+
Module.symvers
77+
Mkfile.old
78+
dkms.conf

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/OpenProfinet.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
cmake_minimum_required(VERSION 3.20)
2+
project(OpenProfinet)
3+
set(CMAKE_PROJECT_VERSION_MAJOR 0)
4+
set(CMAKE_PROJECT_VERSION_MINOR 8)
5+
set(CMAKE_PROJECT_VERSION_PATCH 1)
6+
7+
set(CMAKE_CXX_STANDARD 20)
8+
9+
find_package(Threads REQUIRED)
10+
11+
include_directories(include)
12+
13+
add_executable(pntool src/main.cpp src/pcapInterface.c src/ProfinetTool.cpp)
14+
15+
target_link_libraries(pntool pcap Threads::Threads)
16+
17+
install(TARGETS pntool DESTINATION bin)
18+
19+
set(CPACK_GENERATOR DEB)
20+
set(CPACK_DEBIAN_PACKAGE_NAME OpenProfinet)
21+
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Nareshkumar Rao <contact@nareshkumarrao.com>")
22+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libpcap0.8-dev")
23+
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "OpenProfinet is a collection of tools for working with Profinet on Linux")
24+
set(CPACK_DEBIAN_FILE_NAME OpenProfinet-${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}-${CMAKE_PROJECT_VERSION_PATCH}.deb)
25+
include(CPack)

0 commit comments

Comments
 (0)