2014-11-17 04:41:01 +01:00
|
|
|
project(libtorrent-examples)
|
|
|
|
|
2015-07-16 03:36:54 +02:00
|
|
|
set(single_file_examples
|
|
|
|
simple_client
|
2019-02-15 22:06:47 +01:00
|
|
|
custom_storage
|
2015-07-16 03:36:54 +02:00
|
|
|
stats_counters
|
|
|
|
dump_torrent
|
|
|
|
make_torrent
|
|
|
|
connection_tester
|
|
|
|
upnp_test)
|
|
|
|
|
|
|
|
foreach(example ${single_file_examples})
|
|
|
|
add_executable(${example} "${example}.cpp")
|
2018-04-27 16:27:51 +02:00
|
|
|
target_link_libraries(${example} PRIVATE torrent-rasterbar)
|
2015-07-16 03:36:54 +02:00
|
|
|
endforeach(example)
|
|
|
|
|
|
|
|
add_executable(client_test
|
|
|
|
client_test.cpp
|
|
|
|
print.cpp
|
|
|
|
torrent_view.cpp
|
|
|
|
session_view.cpp)
|
2018-04-27 16:27:51 +02:00
|
|
|
target_link_libraries(client_test PRIVATE torrent-rasterbar)
|