diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..28e25d3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ + +cmake_minimum_required(VERSION 3.10) + +project(CppHttpDemo) + +subdirs( + common + httpclient + httpserver +) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt new file mode 100644 index 0000000..b608e82 --- /dev/null +++ b/common/CMakeLists.txt @@ -0,0 +1,2 @@ + +add_library(mongoose mongoose.c mongoose.h) diff --git a/httpclient/CMakeLists.txt b/httpclient/CMakeLists.txt new file mode 100644 index 0000000..20abbf9 --- /dev/null +++ b/httpclient/CMakeLists.txt @@ -0,0 +1,3 @@ + +add_executable(http_client http_client.cpp http_client.h main.cpp) +target_link_libraries(http_client mongoose) diff --git a/httpserver/CMakeLists.txt b/httpserver/CMakeLists.txt new file mode 100644 index 0000000..fae1cd2 --- /dev/null +++ b/httpserver/CMakeLists.txt @@ -0,0 +1,3 @@ + +add_executable(http_server http_server.cpp http_server.h main.cpp) +target_link_libraries(http_server mongoose)