diff --git a/CMakeLists.txt b/CMakeLists.txt index 186d9b4..a47670b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ install(TARGETS ferretd weaseld ardomains convert_hostdb dump_hostdb dump_hostdb_ndbm db_build db_check db_dump db_reorder db_siteidx db_stats fix_start_db restore_hostdb - parse_webindex partial_webindex retrieve_webindex + parse_webindex partial_webindex extern_urls extern_urls_ndbm check_webindex delete_webindex insert_webindex net_webindex DESTINATION bin @@ -102,6 +102,9 @@ endif() if(OpenSSL_FOUND AND TARGET retrieve_anonftps) install(TARGETS retrieve_anonftps DESTINATION bin) endif() +if(OpenSSL_FOUND AND TARGET retrieve_webindex) + install(TARGETS retrieve_webindex DESTINATION bin) +endif() if(TARGET host_manage) install(TARGETS host_manage DESTINATION bin) endif() diff --git a/archie/webindex/retrieve/CMakeLists.txt b/archie/webindex/retrieve/CMakeLists.txt index a0f4a6c..09bee17 100644 --- a/archie/webindex/retrieve/CMakeLists.txt +++ b/archie/webindex/retrieve/CMakeLists.txt @@ -1,36 +1,36 @@ -find_package(OpenSSL REQUIRED) +if(OpenSSL_FOUND) + add_executable(retrieve_webindex + do_retrieve.c + fileUrl.c + http.c + https.c + lang_retrieve.c + menu.c + parse.c + retrieve_web.c + robot.c + str.c + tcp.c + url.c + urldb.c + ) -add_executable(retrieve_webindex - do_retrieve.c - fileUrl.c - http.c - https.c - lang_retrieve.c - menu.c - parse.c - retrieve_web.c - robot.c - str.c - tcp.c - url.c - urldb.c -) + target_link_libraries(retrieve_webindex PRIVATE + archie_config + anonftp + archiecore + archstridx + hostdb + patrie + startdb + webindexlib + OpenSSL::SSL + OpenSSL::Crypto + ) -target_link_libraries(retrieve_webindex PRIVATE - archie_config - anonftp - archiecore - archstridx - hostdb - patrie - startdb - webindexlib - OpenSSL::SSL - OpenSSL::Crypto -) - -target_include_directories(retrieve_webindex PRIVATE - "${ARCHIE_ROOT}/include" - "${ARCHIE_ROOT}/webindex/lib" - "${CMAKE_CURRENT_SOURCE_DIR}" -) + target_include_directories(retrieve_webindex PRIVATE + "${ARCHIE_ROOT}/include" + "${ARCHIE_ROOT}/webindex/lib" + "${CMAKE_CURRENT_SOURCE_DIR}" + ) +endif()