cmake_minimum_required(VERSION 3.19)
project(flowee_p2p_example VERSION 1.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)

find_package(flowee REQUIRED flowee_p2p)
find_package(OpenSSL REQUIRED)
find_package(Boost 1.67.0 REQUIRED filesystem chrono thread)

# To use Flowee logging framework, this is useful and you're suggesed
# to have a unique range for your app which helps separate sections
# in your log output.
add_compile_definitions(LOG_DEFAULT_SECTION=10000)

add_executable(flowee_example
    main.cpp
    MyClass.h MyClass.cpp
)
target_link_libraries(flowee_example
    flowee_p2p
    flowee_networkmanager
    flowee_utils
    ${OPENSSL_LIBRARIES}
    ${Boost_LIBRARIES}
)
