]> git.saurik.com Git - apt.git/blame - methods/CMakeLists.txt
The entire concept of PendingError() is flawed :/.
[apt.git] / methods / CMakeLists.txt
CommitLineData
f3de2dba
JAK
1# Create the executable targets
2add_executable(file file.cc)
3add_executable(copy copy.cc)
4add_executable(store store.cc)
5add_executable(gpgv gpgv.cc)
6add_executable(cdrom cdrom.cc)
7add_executable(http http.cc http_main.cc rfc2553emu.cc connect.cc server.cc)
8add_executable(mirror mirror.cc http.cc rfc2553emu.cc connect.cc server.cc)
9add_executable(https https.cc server.cc)
10add_executable(ftp ftp.cc rfc2553emu.cc connect.cc)
11add_executable(rred rred.cc)
12add_executable(rsh rsh.cc)
13
14# Add target-specific header directories
15target_include_directories(https PRIVATE ${CURL_INCLUDE_DIRS})
16
17# Link the executables against the libraries
18target_link_libraries(file apt-pkg)
19target_link_libraries(copy apt-pkg)
20target_link_libraries(store apt-pkg)
21target_link_libraries(gpgv apt-pkg)
22target_link_libraries(cdrom apt-pkg)
23target_link_libraries(http apt-pkg)
ad5282bb 24target_link_libraries(mirror apt-pkg ${RESOLV_LIBRARIES})
f3de2dba
JAK
25target_link_libraries(https apt-pkg ${CURL_LIBRARIES})
26target_link_libraries(ftp apt-pkg)
27target_link_libraries(rred apt-pkg)
28target_link_libraries(rsh apt-pkg)
29
30# Install the library
31install(TARGETS file copy store gpgv cdrom http https ftp rred rsh mirror
32 RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/methods)
33
34add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods store gzip lzma bzip2 xz)
35add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods rsh ssh)