]> git.saurik.com Git - apt.git/blob - cmdline/CMakeLists.txt
Not /not/ immediately mapping a file is INSANE :/.
[apt.git] / cmdline / CMakeLists.txt
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
22
23 # Link the executables against the libraries
24 target_link_libraries(apt apt-pkg apt-private)
25 target_link_libraries(apt-cache apt-pkg apt-private)
26 target_link_libraries(apt-get apt-pkg apt-private)
27 target_link_libraries(apt-config apt-pkg apt-private)
28 target_link_libraries(apt-cdrom apt-pkg apt-private)
29 target_link_libraries(apt-helper apt-pkg apt-private)
30 target_link_libraries(apt-mark apt-pkg apt-private)
31 target_link_libraries(apt-sortpkgs apt-pkg apt-private)
32 target_link_libraries(apt-extracttemplates apt-pkg apt-inst apt-private)
33 target_link_libraries(apt-internal-solver apt-pkg apt-inst apt-private)
34 target_link_libraries(apt-dump-solver apt-pkg apt-inst apt-private)
35 target_link_libraries(apt-internal-planner apt-pkg apt-inst apt-private)
36
37 set_target_properties(apt-dump-solver
38 PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
39 RUNTIME_OUTPUT_NAME dump)
40 set_target_properties(apt-internal-solver
41 PROPERTIES RUNTIME_OUTPUT_DIRECTORY solvers
42 RUNTIME_OUTPUT_NAME apt)
43 set_target_properties(apt-internal-planner
44 PROPERTIES RUNTIME_OUTPUT_DIRECTORY planners
45 RUNTIME_OUTPUT_NAME apt)
46
47 # Install the executables
48 install(TARGETS apt apt-cache apt-get apt-config apt-cdrom apt-mark apt-sortpkgs
49 apt-extracttemplates
50 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
51
52 install(TARGETS apt-helper RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/)
53 install(TARGETS apt-dump-solver apt-internal-solver RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/solvers)
54 install(TARGETS apt-internal-planner RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/planners)
55
56 add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/planners ../solvers/dump planners/dump)
57
58 # Install the not-to-be-compiled programs
59 INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/apt-key DESTINATION ${CMAKE_INSTALL_BINDIR})