Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (33 sloc) 1.233 kB
PROJECT(darner)
SET(DARNER_VERSION 0.1.3)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
CMAKE_POLICY(SET CMP0005 NEW) # don't complain about escaping the double-quotes below around DARNER_VERSION
ADD_DEFINITIONS(-Wall -Wno-return-type -O2 -g -DNDEBUG -DDARNER_VERSION="${DARNER_VERSION}")
INCLUDE_DIRECTORIES(include)
ADD_EXECUTABLE(darner
src/net/handler
src/net/request
src/util/log
src/queue/iqstream
src/queue/oqstream
src/queue/queue
src/main
)
ADD_EXECUTABLE(db
bench/db
)
ADD_EXECUTABLE(test
src/net/request
src/queue/iqstream
src/queue/oqstream
src/queue/queue
src/util/log
tests/queue
tests/request
tests/main
)
FIND_PACKAGE(Boost 1.46.1 COMPONENTS thread system program_options unit_test_framework filesystem)
TARGET_LINK_LIBRARIES(darner pthread ${Boost_LIBRARIES} leveldb snappy)
TARGET_LINK_LIBRARIES(db ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(test pthread ${Boost_LIBRARIES} leveldb snappy)
INSTALL(TARGETS darner DESTINATION bin)
Jump to Line
Something went wrong with that request. Please try again.