2014-12-01 19:55:22 +00:00
|
|
|
project(trutils)
|
|
|
|
|
2021-09-21 23:03:39 +00:00
|
|
|
add_compile_options(${CXX_WARNING_FLAGS})
|
2020-08-11 18:11:55 +00:00
|
|
|
|
2022-03-14 04:43:35 +00:00
|
|
|
add_definitions(
|
|
|
|
${LIBFMT_DEFINITIONS}
|
|
|
|
)
|
|
|
|
|
2020-08-11 18:11:55 +00:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
include_directories(
|
|
|
|
SYSTEM
|
|
|
|
${EVENT2_INCLUDE_DIRS}
|
|
|
|
${CURL_INCLUDE_DIRS}
|
2022-03-14 04:43:35 +00:00
|
|
|
${LIBFMT_INCLUDE_DIRS}
|
2020-08-11 18:11:55 +00:00
|
|
|
)
|
2014-12-01 19:55:22 +00:00
|
|
|
|
2018-11-06 20:06:10 +00:00
|
|
|
foreach(P create edit remote show)
|
2015-04-14 22:46:40 +00:00
|
|
|
tr_win32_app_info(${PROJECT_NAME}_${P}_WIN32_RC_FILE
|
|
|
|
"Transmission Utility ('${P}')"
|
|
|
|
"${TR_NAME}-${P}"
|
|
|
|
"${TR_NAME}-${P}.exe")
|
|
|
|
|
2021-09-21 23:03:39 +00:00
|
|
|
add_executable(${TR_NAME}-${P} ${P}.cc ${${PROJECT_NAME}_${P}_WIN32_RC_FILE})
|
2014-12-01 19:55:22 +00:00
|
|
|
target_link_libraries(${TR_NAME}-${P} ${TR_NAME})
|
|
|
|
|
|
|
|
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()
|