diff options
author | Aaditya Dhruv <[email protected]> | 2025-06-05 16:48:13 -0500 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-06-05 16:48:13 -0500 |
commit | b5c0d20d05be427b002cdbd6b7b08b56872509c2 (patch) | |
tree | 0345d6f68dcadd7a50cc9a69865e5ec33dc6a449 | |
parent | 420ce14859e41d1e8b616ebf1c472763eabe93be (diff) |
Include headers in installation
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/network.c | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a460044..b3c83bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,3 +6,5 @@ project(libjunk VERSION 1.0 add_library(junk SHARED) add_subdirectory(src) target_include_directories(junk PUBLIC include) +install(TARGETS junk DESTINATION lib) +install(FILES include DESTINATION include) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 21ed023..30120d1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1 +1 @@ -target_sources(junk PUBLIC test.c network.c) +target_sources(junk PUBLIC test.c network.c FILE_SET ) diff --git a/src/network.c b/src/network.c index 64d217b..7d4d45b 100644 --- a/src/network.c +++ b/src/network.c @@ -11,6 +11,7 @@ #define TAG "network" +//TCP SEND int tcp_ipv4_send_packet(char* ip, char* port, char* data) { int sock; @@ -53,3 +54,7 @@ int tcp_ipv4_send_packet(char* ip, char* port, char* data) { freeaddrinfo(res); return 0; } + + +// TCP BIND +int tcp_ipv4_b |