blob: aca0db57e600e5b8f783f3fe9e2fcc053efd5504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
project(curlcpp)
cmake_minimum_required(VERSION 2.8)
set(PROJECT_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
set(COMMON_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")
include_directories("${COMMON_SOURCE_DIR}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
file(GLOB HEADERS ${PROJECT_INCLUDE_DIR}/*.h)
file(GLOB SOURCES ${COMMON_SOURCE_DIR}/*.cpp)
add_library(curlcpp SHARED ${SOURCES} ${HEADERS})
target_link_libraries(curlcpp curl)
install(TARGETS curlcpp LIBRARY DESTINATION lib)
|