project curl cmake_minimum_requir ed VERSION set CMAKE_CXX_FLAGS CMAKE

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
project(curl)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g")
# src
set(SRC_LIST
curl.cpp
)
# libs
set(LIB_LIST
curl
)
add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} ${LIB_LIST})