Skip to content

Commit

Permalink
Remove libtorrent dependency from cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchappelle committed Jul 10, 2015
1 parent 2b84ec9 commit 656eb64
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(CMAKE_MODULE_PATH

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

find_package(LibTorrentRasterbar REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(Threads REQUIRED)

Expand All @@ -16,12 +15,10 @@ set(HEADERS bencode.hpp lazy_entry.hpp)

include_directories(
${CMAKE_BINARY_DIR}/include
${Boost_INCLUDE_DIRS}
${LibTorrentRasterbar_INCLUDE_DIRS})
${Boost_INCLUDE_DIRS})

add_executable(bootstrap-dht ${SOURCES} ${HEADERS})

target_link_libraries(bootstrap-dht
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${LibTorrentRasterbar_LIBRARIES})
${CMAKE_THREAD_LIBS_INIT})

0 comments on commit 656eb64

Please sign in to comment.