summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/network.c1
3 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3c83bc..132397b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,5 +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)
+install(TARGETS junk)
+install(DIRECTORY include/ DESTINATION include)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 30120d1..21ed023 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1 +1 @@
-target_sources(junk PUBLIC test.c network.c FILE_SET )
+target_sources(junk PUBLIC test.c network.c)
diff --git a/src/network.c b/src/network.c
index 7d4d45b..eafe19f 100644
--- a/src/network.c
+++ b/src/network.c
@@ -57,4 +57,3 @@ int tcp_ipv4_send_packet(char* ip, char* port, char* data) {
// TCP BIND
-int tcp_ipv4_b