add_executable(smtpd_example smtpd_example.cpp)
add_executable(smtp_example smtp_example.cpp)

target_include_directories(smtpd_example PRIVATE ${CMAKE_SOURCE_DIR}/src)
target_include_directories(smtp_example PRIVATE ${CMAKE_SOURCE_DIR}/src)

if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Windows")
  target_link_libraries(smtpd_example smtppp)
  target_link_libraries(smtp_example smtppp)
else()
  target_link_libraries(smtpd_example smtppp pthread)
  target_link_libraries(smtp_example smtppp pthread)
endif()
