Skip to content

Instantly share code, notes, and snippets.

@ngerakines
Created September 9, 2019 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngerakines/58ed58354cb313c87c42f96798a4b1ca to your computer and use it in GitHub Desktop.
Save ngerakines/58ed58354cb313c87c42f96798a4b1ca to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.7)
project(main)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
set(cpprestsdk_DIR /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/)
find_package(cpprestsdk CONFIG REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE cpprestsdk::cpprest ${Boost_SYSTEM_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment