From 9a2a10b2eb0dbb5fb2731da3b6b9318f5434f36e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 28 Sep 2008 00:26:49 +0000 Subject: [PATCH] added example targets to CMakeLists --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8110d59e7..03df20ebc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})