Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (29 sloc) 0.958 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
PROJECT(spread)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

# silence cmake
if(COMMAND cmake_policy)
  cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

ADD_DEFINITIONS(-Wall -O2 -g -DNDEBUG)

INCLUDE_DIRECTORIES(include)

ADD_LIBRARY(spreadlib STATIC
            src/buffer
            src/hashers
            src/partition
            src/progress
            src/endpoint
            src/merge
            src/exploder
            )

SET_TARGET_PROPERTIES(spreadlib PROPERTIES OUTPUT_NAME "spread")

ADD_EXECUTABLE(spread
               src/spread_app
               )

ADD_EXECUTABLE(explode
               src/explode_app
               )

TARGET_LINK_LIBRARIES(spread boost_thread boost_system boost_program_options spreadlib)
TARGET_LINK_LIBRARIES(explode boost_thread boost_system boost_program_options spreadlib)

INSTALL(TARGETS spread DESTINATION bin)
INSTALL(TARGETS explode DESTINATION bin)
INSTALL(TARGETS spreadlib ARCHIVE DESTINATION lib)
Something went wrong with that request. Please try again.