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.
 
 
 
 
 
 

60 lines
2.7 KiB

  1. # Create the executable tasks
  2. add_executable(apt apt.cc)
  3. add_executable(apt-cache apt-cache.cc)
  4. add_executable(apt-get apt-get.cc)
  5. add_executable(apt-mark apt-mark.cc)
  6. add_executable(apt-config apt-config.cc)
  7. add_executable(apt-cdrom apt-cdrom.cc)
  8. add_executable(apt-helper apt-helper.cc)
  9. add_executable(apt-sortpkgs apt-sortpkgs.cc)
  10. add_executable(apt-extracttemplates apt-extracttemplates.cc)
  11. add_executable(apt-internal-solver apt-internal-solver.cc)
  12. add_executable(apt-dump-solver apt-dump-solver.cc)
  13. add_executable(apt-internal-planner apt-internal-planner.cc)
  14. add_vendor_file(OUTPUT apt-key
  15. INPUT apt-key.in
  16. MODE 755
  17. VARIABLES keyring-filename
  18. keyring-removed-filename
  19. keyring-master-filename
  20. keyring-uri keyring-package)
  21. # Link the executables against the libraries
  22. target_link_libraries(apt apt-pkg apt-private)
  23. target_link_libraries(apt-cache apt-pkg apt-private)
  24. target_link_libraries(apt-get apt-pkg apt-private)
  25. target_link_libraries(apt-config apt-pkg apt-private)
  26. target_link_libraries(apt-cdrom apt-pkg apt-private)
  27. target_link_libraries(apt-helper apt-pkg apt-private)
  28. target_link_libraries(apt-mark apt-pkg apt-private)
  29. target_link_libraries(apt-sortpkgs apt-pkg apt-private)
  30. target_link_libraries(apt-extracttemplates apt-pkg apt-private)
  31. target_link_libraries(apt-internal-solver apt-pkg apt-private)
  32. target_link_libraries(apt-dump-solver apt-pkg apt-private)
  33. target_link_libraries(apt-internal-planner apt-pkg apt-private)
  34. set_target_properties(apt-dump-solver
  35. PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
  36. RUNTIME_OUTPUT_NAME dump)
  37. set_target_properties(apt-internal-solver
  38. PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
  39. RUNTIME_OUTPUT_NAME apt)
  40. set_target_properties(apt-internal-planner
  41. PROPERTIES RUNTIME_OUTPUT_DIRECTORY planners
  42. RUNTIME_OUTPUT_NAME apt)
  43. # Install the executables
  44. install(TARGETS apt apt-cache apt-get apt-config apt-cdrom apt-mark apt-sortpkgs
  45. apt-extracttemplates
  46. RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
  47. install(TARGETS apt-helper RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/)
  48. install(TARGETS apt-dump-solver apt-internal-solver RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/solvers)
  49. install(TARGETS apt-internal-planner RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/planners)
  50. add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/planners ../solvers/dump planners/dump)
  51. # Install the not-to-be-compiled programs
  52. INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/apt-key DESTINATION ${CMAKE_INSTALL_BINDIR})