From cbf26a42df0c323e00a2444932be0a4c66b44f74 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sat, 7 Jun 2025 06:51:46 -0700 Subject: Update CMakeLists with include/install fix --- CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 2 +- src/network.c | 1 - 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 -- cgit