cmake_minimum_required(VERSION 3.2.2)
project(PHOBOS-TOOLS CXX)

add_definitions("-DASIO_STANDALONE")
include_directories(../external/asio/asio/include)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -Wextra")

add_executable(seriallog seriallog.cc)

cmake_minimum_required(VERSION 3.2.2)
project(PHOBOS-TOOLS CXX C)

add_definitions("-DASIO_STANDALONE")
include_directories(../external/asio/asio/include)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -Wextra")

add_executable(seriallog seriallog.cc)
if (NOT APPLE)
    find_package(Threads)
    target_link_libraries(seriallog ${CMAKE_THREAD_LIBS_INIT})
endif()

Fix link errors when not using OSX
Fix link errors when not using OSX

Asio requires executable be explicitly linked to threads library when
not built on OSX.
