summaryrefslogtreecommitdiff
path: root/methods/CMakeLists.txt
blob: 14689bbfeb9300406cede98d8a08444e735cfdd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Create the executable targets
include_directories($<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_INCLUDE_DIR}>)
link_libraries(apt-pkg $<$<BOOL:${SECCOMP_FOUND}>:${SECCOMP_LIBRARIES}>)

#add_library(connectlib OBJECT connect.cc rfc2553emu.cc)

add_executable(file file.cc)
add_executable(copy copy.cc)
add_executable(store store.cc)
add_executable(gpgv gpgv.cc)
add_executable(cdrom cdrom.cc)
#add_executable(http http.cc basehttp.cc $<TARGET_OBJECTS:connectlib>)
add_executable(https nshttp.mm)
add_executable(mirror mirror.cc)
#add_executable(ftp ftp.cc $<TARGET_OBJECTS:connectlib>)
add_executable(rred rred.cc)
add_executable(rsh rsh.cc)

#target_compile_definitions(connectlib PRIVATE ${GNUTLS_DEFINITIONS})
#target_include_directories(connectlib PRIVATE ${GNUTLS_INCLUDE_DIR})

# Additional libraries to link against for networked stuff
#target_link_libraries(http ${GNUTLS_LIBRARIES})
target_link_libraries(https "-framework Foundation")
#target_link_libraries(ftp ${GNUTLS_LIBRARIES})

# Install the library
install(TARGETS file copy store https gpgv cdrom rred rsh mirror
        RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/apt/methods)

add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods mirror mirror+ftp mirror+http mirror+https mirror+file mirror+copy)
add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods rsh ssh)


#add_slaves(${CMAKE_INSTALL_LIBEXECDIR}/apt/methods http https)