You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.9 KiB

  1. # Create the executable targets
  2. include_directories($<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_INCLUDE_DIR}>)
  3. add_executable(file file.cc)
  4. add_executable(copy copy.cc)
  5. add_executable(store store.cc)
  6. add_executable(gpgv gpgv.cc)
  7. add_executable(cdrom cdrom.cc)
  8. add_executable(http http.cc http_main.cc rfc2553emu.cc connect.cc basehttp.cc)
  9. add_executable(mirror mirror.cc http.cc rfc2553emu.cc connect.cc basehttp.cc)
  10. add_executable(ftp ftp.cc rfc2553emu.cc connect.cc)
  11. add_executable(rred rred.cc)
  12. add_executable(rsh rsh.cc)
  13. target_compile_definitions(http PRIVATE ${GNUTLS_DEFINITIONS})
  14. target_include_directories(http PRIVATE ${GNUTLS_INCLUDE_DIR})
  15. # Link the executables against the libraries
  16. target_link_libraries(file apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  17. target_link_libraries(copy apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  18. target_link_libraries(store apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  19. target_link_libraries(gpgv apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  20. target_link_libraries(cdrom apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  21. target_link_libraries(http apt-pkg ${GNUTLS_LIBRARIES} $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  22. target_link_libraries(mirror apt-pkg ${RESOLV_LIBRARIES} ${GNUTLS_LIBRARIES} $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  23. target_link_libraries(ftp apt-pkg ${GNUTLS_LIBRARIES} $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  24. target_link_libraries(rred apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  25. target_link_libraries(rsh apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)
  26. # Install the library
  27. install(TARGETS file copy store gpgv cdrom http ftp rred rsh mirror
  28. RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/methods)
  29. add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods store gzip lzma bzip2 xz)
  30. add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods rsh ssh)
  31. add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods http https)