2023-01-01 19:49:48 +00:00
|
|
|
foreach(P create edit remote show)
|
|
|
|
add_executable(${TR_NAME}-${P})
|
2014-12-01 19:55:22 +00:00
|
|
|
|
2023-01-01 19:49:48 +00:00
|
|
|
target_sources(${TR_NAME}-${P}
|
|
|
|
PRIVATE
|
|
|
|
${P}.cc)
|
2014-12-01 19:55:22 +00:00
|
|
|
|
2023-01-01 19:49:48 +00:00
|
|
|
target_link_libraries(${TR_NAME}-${P}
|
|
|
|
PRIVATE
|
|
|
|
${TR_NAME}
|
2023-01-02 16:23:51 +00:00
|
|
|
CURL::libcurl
|
|
|
|
fmt::fmt-header-only
|
|
|
|
libevent::event)
|
2023-01-01 19:49:48 +00:00
|
|
|
|
|
|
|
tr_win32_app_info(${TR_NAME}-${P}
|
2015-04-14 22:46:40 +00:00
|
|
|
"Transmission Utility ('${P}')"
|
|
|
|
"${TR_NAME}-${P}"
|
|
|
|
"${TR_NAME}-${P}.exe")
|
|
|
|
|
2023-01-01 19:49:48 +00:00
|
|
|
install(
|
|
|
|
TARGETS ${TR_NAME}-${P}
|
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2014-12-01 19:55:22 +00:00
|
|
|
|
|
|
|
if(INSTALL_DOC)
|
2023-01-01 19:49:48 +00:00
|
|
|
install(
|
|
|
|
FILES ${TR_NAME}-${P}.1
|
|
|
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
2014-12-01 19:55:22 +00:00
|
|
|
endif()
|
|
|
|
endforeach()
|