SHARE
TWEET

1_inner

Hemirt Aug 15th, 2019 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
  2.  
  3. project(hiredis-asio CXX)
  4.  
  5. set(CMAKE_CXX_STANDARD 20)
  6.  
  7. SET(Boost_USE_STATIC_LIBS OFF)
  8. SET(Boost_USE_MULTITHREAD ON)
  9. find_package(Boost 1.60.0 REQUIRED COMPONENTS system regex thread)
  10. include_directories(${Boost_INCLUDE_DIRS})
  11.  
  12. find_package(Hiredis 0.14.0)
  13. include_directories(${HIREDIS_INCLUDE_DIR})
  14.  
  15. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/source)
  16.  
  17. add_library(hiredis-asio SHARED
  18.     ${CMAKE_CURRENT_SOURCE_DIR}/source/boostasio.cpp
  19. )
  20.  
  21. target_include_directories(hiredis-asio PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/source)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top