小鬼之家

流浪,游走于文明与原始之间. 关注底层技术,实现美好生活。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
project(nginx)
cmake_minimum_required(VERSION 2.8)

aux_source_directory(. SRC_LIST)
aux_source_directory(./src/core SRC_LIST)
aux_source_directory(./src/event SRC_LIST)
aux_source_directory(./src/event/modules SRC_LIST)
aux_source_directory(./src/os/unix SRC_LIST)
aux_source_directory(./src/http SRC_LIST)
aux_source_directory(./src/http/modules SRC_LIST)

add_executable(${PROJECT_NAME} ${SRC_LIST})

INCLUDE_DIRECTORIES(./)
INCLUDE_DIRECTORIES(./src/core)
INCLUDE_DIRECTORIES(./src/event)
INCLUDE_DIRECTORIES(./src/event/modules)
INCLUDE_DIRECTORIES(./src/os/unix)
INCLUDE_DIRECTORIES(./src/http)
INCLUDE_DIRECTORIES(./src/http/modules)
INCLUDE_DIRECTORIES(./src/mail)

INCLUDE_DIRECTORIES(/opt/local/include)

TARGET_LINK_LIBRARIES (${PROJECT_NAME} /opt/local/lib/libpcre.a)
TARGET_LINK_LIBRARIES (${PROJECT_NAME} /opt/local/lib/libcrypto.a)
TARGET_LINK_LIBRARIES (${PROJECT_NAME} /opt/local/lib/libz.a)

 

posted on 2016-05-24 22:15  黄尚  阅读(1614)  评论(0编辑  收藏  举报