Advertisement
gab_dc

Libraries.cmake

Feb 5th, 2020
1,132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.52 KB | None | 0 0
  1. # Find Boost and use static libs
  2.  
  3. set(Boost_USE_STATIC_LIBS  ON)
  4. find_package(Boost REQUIRED program_options date_time filesystem system)
  5. if (NOT Boost_FOUND)
  6.    message(FATAL_ERROR "Cannot find Boost!")
  7. endif()
  8.  
  9. list(APPEND Boost_LIBRARIES cppnetlib-uri cppnetlib-client-connections ssl crypto)
  10. set(OPENSSL_USE_STATIC_LIBS TRUE)
  11. add_definitions(-D BOOST_NETWORK_ENABLE_HTTPS)
  12. include_directories(${Boost_INCLUDE_DIRS})
  13.  
  14. # later on Boost found like this
  15. find_package(Boost 1.58.0 REQUIRED COMPONENTS system thread)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement