set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Werror -std=c++11")

include_directories(SYSTEM ${RESOURCE_POOL_DEPENDENCY_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)

find_package(Boost REQUIRED coroutine)
find_package(Boost REQUIRED context)

set(LIBRARIES
    -lrt
    -pthread
    ${Boost_COROUTINE_LIBRARY}
    ${Boost_CONTEXT_LIBRARY}
    ${RESOURCE_POOL_DEPENDENCY_LIBRARIES}
)

add_executable(async_pool async/pool.cc)
target_link_libraries(async_pool ${LIBRARIES})

add_executable(coro_pool async/coro.cc)
target_link_libraries(coro_pool ${LIBRARIES})

add_executable(async_strand async/strand.cc)
target_link_libraries(async_strand ${LIBRARIES})

add_executable(sync_pool sync/pool.cc)
target_link_libraries(sync_pool ${LIBRARIES})

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Werror -std=c++11")

include_directories(SYSTEM ${RESOURCE_POOL_DEPENDENCY_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)

find_package(Boost COMPONENTS coroutine context REQUIRED)

set(LIBRARIES
    -lrt
    -pthread
    ${Boost_COROUTINE_LIBRARY}
    ${Boost_CONTEXT_LIBRARY}
    ${RESOURCE_POOL_DEPENDENCY_LIBRARIES}
)

add_executable(async_pool async/pool.cc)
target_link_libraries(async_pool ${LIBRARIES})

add_executable(coro_pool async/coro.cc)
target_link_libraries(coro_pool ${LIBRARIES})

add_executable(async_strand async/strand.cc)
target_link_libraries(async_strand ${LIBRARIES})

add_executable(sync_pool sync/pool.cc)
target_link_libraries(sync_pool ${LIBRARIES})

Fix find_package usage for Boost
Fix find_package usage for Boost

Change-Id: I906a5b1e4ea735115ffb21118839575d63101c69
