From 3eeee14d5d5c93ae3d156aabae5a96d1c09f185a Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 4 Jul 2024 20:49:53 +0300 Subject: Renamed types, migrated to make, changed directory hierarchy --- server/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'server/CMakeLists.txt') diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 0ba4d8b..f63f897 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -1,3 +1,5 @@ +# CMake files will be removed in the next several commits + cmake_minimum_required(VERSION 3.20) project(kv_server @@ -5,10 +7,15 @@ project(kv_server DESCRIPTION "A server for kv project." LANGUAGES C) -set(SOURCE_FILES main.c channel.c) -set(HEADER_FILES channel.h) +set(SOURCE_FILES main.c channel.c tcp.c ../include/packet.c) +set(HEADER_FILES channel.h tcp.h) add_executable(kv_server ${SOURCE_FILES}) target_compile_definitions(kv_server PUBLIC DEBUG) +target_link_libraries(kv_server + PUBLIC crypto + PUBLIC pthread +) + -- cgit v1.2.3-70-g09d2