From 8250d24efd3e8d9c5a295374e0e21ec4efbd4a18 Mon Sep 17 00:00:00 2001 From: ANTA <arcticshine999@gmail.com> Date: Tue, 16 Jul 2019 02:02:35 +0400 Subject: [PATCH] 1.1-11-Win --- CMakeLists.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5038bb..85234f8 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,20 +2,30 @@ cmake_minimum_required(VERSION 2.8) project (dap_chain_net_srv_app) set(DAP_CHAIN_NET_SRV_APP_SRCS - dap_chain_net_srv_app.c + dap_chain_net_srv_app.c ) set(DAP_CHAIN_NET_SRV_APP_HEADERS dap_chain_net_srv_app.h ) -add_library(${PROJECT_NAME} STATIC ${DAP_CHAIN_NET_SRV_APP_SRCS} ${DAP_CHAIN_NET_SRV_APP_HEADERS}) +if(WIN32) + include_directories(../libdap/src/win32/) + include_directories(../3rdparty/libmemcached/) + include_directories(../3rdparty/libmemcached/win32/) + include_directories(../3rdparty/wepoll/include/) + include_directories(../3rdparty/uthash/src/) + include_directories(../3rdparty/libjson-c/) + include_directories(../3rdparty/libmagic/src/) + include_directories(../3rdparty/curl/include/) + include_directories(../3rdparty/libsqlite3/) +endif() +add_library(${PROJECT_NAME} STATIC ${DAP_CHAIN_NET_SRV_APP_SRCS} ${DAP_CHAIN_NET_SRV_APP_HEADERS}) -target_link_libraries(dap_chain_net_srv_app dap_core dap_crypto dap_chain dap_chain_crypto dap_chain_net dap_chain_net_srv ) +target_link_libraries(dap_chain_net_srv_app dap_core dap_crypto dap_chain dap_chain_crypto dap_chain_net dap_chain_net_srv) target_include_directories(dap_chain_net_srv_app INTERFACE .) - 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