Files
transmission/utils/CMakeLists.txt
Yat Ho 59939ad4e3 build: improve building with system libevent (#8223)
* build: improve building with system libevent

* chore: remove legacy `tr_add_external_auto_library` macro
2026-02-04 13:36:04 -06:00

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()