Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
- project(WNMAbot++Reader CXX)
- set(CMAKE_CXX_STANDARD 20)
- SET(Boost_USE_STATIC_LIBS OFF)
- SET(Boost_USE_MULTITHREAD ON)
- find_package(Boost 1.60.0 REQUIRED COMPONENTS system regex thread)
- include_directories(${Boost_INCLUDE_DIRS})
- find_package(Hiredis 0.14.0)
- include_directories(${HIREDIS_INCLUDE_DIR})
- include_directories(${CMAKE_CURRENT_SOURCE_DIR}/sources)
- add_subdirectory(ext/redisconnector)
- set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/source)
- set(SOURCES
- ${SOURCES}
- ${SRCDIR}/main.cpp
- ${SRCDIR}/connection.cpp
- ${SRCDIR}/publisher.cpp
- )
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
- add_executable (WNMAbot++Reader ${SOURCES})
- target_link_libraries(WNMAbot++Reader redisconnector ${Boost_LIBRARIES} ${HIREDIS_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement