Advertisement
Hemirt

3_outer

Aug 15th, 2019
1,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.82 KB | None | 0 0
  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. 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}/sources)
  16.  
  17. add_subdirectory(ext/redisconnector)
  18.  
  19. set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/source)
  20.  
  21. set(SOURCES
  22.     ${SOURCES}
  23.     ${SRCDIR}/main.cpp
  24.     ${SRCDIR}/connection.cpp
  25.     ${SRCDIR}/publisher.cpp
  26. )
  27.  
  28. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
  29.  
  30. add_executable (WNMAbot++Reader ${SOURCES})
  31. target_link_libraries(WNMAbot++Reader redisconnector ${Boost_LIBRARIES} ${HIREDIS_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement