From 42a9e962f8cc9c307485018f91106f6b19977150 Mon Sep 17 00:00:00 2001
From: armatusmiles <akurotych@gmail.com>
Date: Wed, 6 Feb 2019 21:44:25 +0700
Subject: [PATCH] [*] refactor CMakeLists.txt

---
 enc_server/CMakeLists.txt              |  2 +-
 http_server/http_client/CMakeLists.txt | 11 -----------
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/enc_server/CMakeLists.txt b/enc_server/CMakeLists.txt
index e76a20f..0a51475 100644
--- a/enc_server/CMakeLists.txt
+++ b/enc_server/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.0)
-project(dap_enc_server)
+project(dap_enc_server C)
   
 set(DAP_ENC_SERVER_SRCS  dap_enc_http.c  dap_enc_ks.c)
 
diff --git a/http_server/http_client/CMakeLists.txt b/http_server/http_client/CMakeLists.txt
index 7457a54..a3a75e0 100644
--- a/http_server/http_client/CMakeLists.txt
+++ b/http_server/http_client/CMakeLists.txt
@@ -4,15 +4,4 @@ project (dap_http)
 set(HTTP_SRCS dap_http_client.c dap_http_client_simple.c dap_http_header.c)
  
 add_library(${PROJECT_NAME} STATIC ${HTTP_SRCS})
-target_link_libraries(${PROJECT_NAME}  curl)
 
-include_directories("${dap_core_INCLUDE_DIRS}")
-#include_directories("${dap_client_INCLUDE_DIRS}")
-include_directories("${dap_http_server_INCLUDE_DIRS}")
-add_definitions ("${dap_core_DEFINITIONS}")
-add_definitions ("${dap_client_DEFINITIONS}")
-add_definitions ("${dap_http_server_DEFINITIONS}")
-
-set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE)
-
-set(${PROJECT_NAME}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR} CACHE INTERNAL "${PROJECT_NAME}: Include Directories" FORCE)
-- 
GitLab