mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
* build: improve building with system libevent * chore: remove legacy `tr_add_external_auto_library` macro
30 lines
693 B
CMake
30 lines
693 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::core)
|
|
|
|
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()
|