set(CXX_SOURCES)
auto_sources(files "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")
list(APPEND CXX_SOURCES ${files})

find_package(Boost 1.48.0 COMPONENTS thread system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

include_directories("${HPHP_HOME}/third-party")
add_library(hphp_proxygen STATIC ${CXX_SOURCES})

add_dependencies(hphp_proxygen hphp_thrift)
target_link_libraries(hphp_proxygen hphp_thrift 
                                    ${Boost_LIBRARIES}
                                    ${LIBGLOG_LIBRARY}
                                    ${LIBPTHREAD_LIBRARIES})

