forked from ShadowsocksR-Live/shadowsocksr-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (29 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Copyright © 2011-2015, RedJack, LLC.
# All rights reserved.
#
# Please see the COPYING file in this distribution for license details.
# ----------------------------------------------------------------------
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
cmake_minimum_required(VERSION 3.0)
set(PROJECT_NAME shadowsocksr-native)
set(RELEASE_DATE 2015-09-03)
project(${PROJECT_NAME} VERSION 0.6.0 LANGUAGES C)
set(with_crypto_library "mbedtls" CACHE STRING "build with the given crypto library, TYPE=mbedtls")
add_subdirectory(depends/mbedtls)
add_subdirectory(depends/zlib/staticbuild)
add_subdirectory(depends/pcre/staticbuild)
include ( cmake/dist.cmake )
include ( configure )
configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
add_subdirectory(depends/libsodium)
add_subdirectory(libcork)
add_subdirectory(libipset)
add_subdirectory(depends/libuv)
add_subdirectory(depends/json-c/staticbuild)
add_subdirectory(depends/uv-mbed/win32)
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
add_subdirectory(libudns)
add_subdirectory(src)