# Set the minimum required version of cmake for a project and update Policy Settings to match the version given.# If the current version of CMake is lower than that required it will stop processing the project and report an error.cmake_minimum_required(VERSION 3.2)set(PROJECT_NAME shakowsocks-libev)set(RELEASE_DATE 2017-9-15)set(PROJECT_VERSION "3.1.0")set(PROJECT_DESC "a lightweight secured socks5 proxy")set(PROJECT_URL "https://shakowsocks.org")set(PROJECT_ISSUES_URL "https://github.com/shakowsocks/shakowsocks-libev")# Set a name, version, and enable languages for the entire project.project(${PROJECT_NAME})set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")#set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/out)set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)set(RUNTIME_SHARED_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/shared/bin)set(CMAKE_MACOSX_RPATH TRUE)if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug)endif ()# Detect linuxif (UNIX AND NOT APPLE) set(LINUX TRUE)endif ()message(STATUS "Running cmake version ${CMAKE_VERSION}")option(WITH_STATIC "build with static libraries." ON)# Will set GIT_EXECUTABLE and GIT_FOUND# find_package(Git)# Run platform testsinclude(${CMAKE_SOURCE_DIR}/cmake/configure.cmake)# Copy a file to another location and modify its contents.# configure_file(