diff options
author | Aaditya Dhruv <[email protected]> | 2025-06-07 06:51:46 -0700 |
---|---|---|
committer | Aaditya Dhruv <[email protected]> | 2025-06-07 06:51:46 -0700 |
commit | cbf26a42df0c323e00a2444932be0a4c66b44f74 (patch) | |
tree | 6a01ce3312e47140cd443bd94be6acb43f5ddd25 | |
parent | b5c0d20d05be427b002cdbd6b7b08b56872509c2 (diff) |
Update CMakeLists with include/install fix
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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 |