-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
49 lines (38 loc) · 931 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
49
project(SimpleHttpRequest)
cmake_minimum_required(VERSION 3.4)
# Version number
set(RELEASE_MAJOR 0)
set(RELEASE_MINOR 1)
set(RELEASE_PATCH 0)
# Uncomment the following lines to use Conan for OpenSSL support.
#
# include(.conan/conanbuildinfo.cmake)
# conan_basic_setup()
set(RELEASE_STRING "${RELEASE_MAJOR}.${RELEASE_MINOR}.${RELEASE_PATCH}-${BUILD_ID}")
message(STATUS "Building Release: ${RELEASE_STRING}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
set(SRC ${CMAKE_SOURCE_DIR})
set(HTTP_PARSER ${SRC}/http-parser)
set(LIBUV ${SRC}/libuv)
include_directories(
${SRC}
${HTTP_PARSER}
${LIBUV}/include
)
link_directories(
${LIBUV}/.libs
${HTTP_PARSER}
)
set(LIBS
crypto
http_parser
pthread
uv
)
#########
# Examples - demo program.
#########
add_executable(example
${SRC}/example.cpp
)
target_link_libraries(example ${LIBS})