added example targets to CMakeLists

This commit is contained in:
Arvid Norberg 2008-09-28 00:26:49 +00:00
parent c80745ad13
commit 9a2a10b2eb
1 changed files with 12 additions and 1 deletions

View File

@ -179,7 +179,18 @@ if (WITH_TCMALLOC)
target_link_libraries(torrent tcmalloc)
endif (WITH_TCMALLOC)
target_link_libraries(torrent ${libraries} z)
target_link_libraries(torrent z)
include_directories(${includes})
set(examples client_test dump_torrent simple_client enum_if make_torrent)
foreach(s ${examples})
add_executable(${s} examples/${s}.cpp)
target_link_libraries(${s} torrent)
endforeach(s)
find_library(bpo boost_program_options-mt-1_35 ${library_search_paths})
target_link_libraries(client_test ${bpo})
find_library(regex boost_regex-mt-1_35 ${library_search_paths})
target_link_libraries(client_test ${regex})