1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/utils/CMakeLists.txt
Mike Gelfand 57e6b06921
Modernize CMake code (ongoing refactoring) (#4515)
* Use imported CMake target for CURL

* Use imported CMake target for fmtlib

* Use imported CMake target for WideInteger

* Use imported CMake target for FastFloat

* Use imported CMake target for UtfCpp

* Use imported CMake target for Threads

* Use imported CMake target for Iconv

* Use imported CMake target for crypto backend

* Use imported CMake target for GTK

* Use imported CMake target for Qt

* Use imported CMake target for deflate

* Use imported CMake target for libevent

* Use imported CMake target for natpmp

* Use imported CMake target for miniupnpc

* Use imported CMake target for dht

* Use imported CMake target for psl

* Use imported CMake target for libutp

* Use imported CMake target for libb64

* Use include directories from libtransmission target
2023-01-02 16:23:51 +00:00

29 lines
694 B
CMake

foreach(P create edit remote show)
add_executable(${TR_NAME}-${P})
target_sources(${TR_NAME}-${P}
PRIVATE
${P}.cc)
target_link_libraries(${TR_NAME}-${P}
PRIVATE
${TR_NAME}
CURL::libcurl
fmt::fmt-header-only
libevent::event)
tr_win32_app_info(${TR_NAME}-${P}
"Transmission Utility ('${P}')"
"${TR_NAME}-${P}"
"${TR_NAME}-${P}.exe")
install(
TARGETS ${TR_NAME}-${P}
DESTINATION ${CMAKE_INSTALL_BINDIR})
if(INSTALL_DOC)
install(
FILES ${TR_NAME}-${P}.1
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif()
endforeach()