SHARE
TWEET

3_outer

Hemirt Aug 15th, 2019 93 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(WNMAbot++Reader 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. find_package(Hiredis 0.14.0)
  11.  
  12. add_subdirectory(ext/redisconnector)
  13.  
  14. set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/source)
  15.  
  16. set(SOURCES
  17.     ${SOURCES}
  18.     ${SRCDIR}/main.cpp
  19.     ${SRCDIR}/connection.cpp
  20.     ${SRCDIR}/publisher.cpp
  21. )
  22.  
  23. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
  24.  
  25. add_executable (WNMAbot++Reader ${SOURCES})
  26.  
  27. target_include_directories(WNMAbot++Reader PRIVATE ${Boost_INCLUDE_DIRS})
  28. target_include_directories(WNMAbot++Reader PRIVATE ${HIREDIS_INCLUDE_DIR})
  29. target_include_directories(WNMAbot++Reader PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/sources)
  30. target_link_libraries(WNMAbot++Reader redisconnector ${Boost_LIBRARIES} ${HIREDIS_LIBRARIES})
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