]> git.saurik.com Git - apt.git/blame - cmdline/CMakeLists.txt
test: Explicitly pass --admindir=var/lib/dpkg to dpkg
[apt.git] / cmdline / CMakeLists.txt
CommitLineData
f3de2dba
JAK
1# Create the executable tasks
2add_executable(apt apt.cc)
3add_executable(apt-cache apt-cache.cc)
4add_executable(apt-get apt-get.cc)
5add_executable(apt-mark apt-mark.cc)
6add_executable(apt-config apt-config.cc)
7add_executable(apt-cdrom apt-cdrom.cc)
8add_executable(apt-helper apt-helper.cc)
9add_executable(apt-sortpkgs apt-sortpkgs.cc)
10add_executable(apt-extracttemplates apt-extracttemplates.cc)
11add_executable(apt-internal-solver apt-internal-solver.cc)
12add_executable(apt-dump-solver apt-dump-solver.cc)
13add_executable(apt-internal-planner apt-internal-planner.cc)
14add_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
22
23# Link the executables against the libraries
24target_link_libraries(apt apt-pkg apt-private)
25target_link_libraries(apt-cache apt-pkg apt-private)
26target_link_libraries(apt-get apt-pkg apt-private)
27target_link_libraries(apt-config apt-pkg apt-private)
28target_link_libraries(apt-cdrom apt-pkg apt-private)
29target_link_libraries(apt-helper apt-pkg apt-private)
30target_link_libraries(apt-mark apt-pkg apt-private)
31target_link_libraries(apt-sortpkgs apt-pkg apt-private)
32target_link_libraries(apt-extracttemplates apt-pkg apt-inst apt-private)
33target_link_libraries(apt-internal-solver apt-pkg apt-inst apt-private)
34target_link_libraries(apt-dump-solver apt-pkg apt-inst apt-private)
35target_link_libraries(apt-internal-planner apt-pkg apt-inst apt-private)
36
37set_target_properties(apt-dump-solver
38 PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
39 RUNTIME_OUTPUT_NAME dump)
40set_target_properties(apt-internal-solver
41 PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
42 RUNTIME_OUTPUT_NAME apt)
43set_target_properties(apt-internal-planner
44 PROPERTIES RUNTIME_OUTPUT_DIRECTORY planners
45 RUNTIME_OUTPUT_NAME apt)
46
47# Install the executables
48install(TARGETS apt apt-cache apt-get apt-config apt-cdrom apt-mark apt-sortpkgs
49 apt-extracttemplates
50 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
51
52install(TARGETS apt-helper RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/)
53install(TARGETS apt-dump-solver apt-internal-solver RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/solvers)
54install(TARGETS apt-internal-planner RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/planners)
55
56add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/planners ../solvers/dump planners/dump)
57
58# Install the not-to-be-compiled programs
59INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/apt-key DESTINATION ${CMAKE_INSTALL_BINDIR})