2014-12-01 19:55:22 +00:00
|
|
|
project(trcli)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
|
2015-04-14 22:46:40 +00:00
|
|
|
tr_win32_app_info(${PROJECT_NAME}_WIN32_RC_FILE
|
|
|
|
"Transmission Utility ('cli', obsolete)"
|
|
|
|
"${TR_NAME}-cli"
|
|
|
|
"${TR_NAME}-cli.exe")
|
|
|
|
|
2021-09-24 14:38:09 +00:00
|
|
|
add_executable(${TR_NAME}-cli cli.cc ${${PROJECT_NAME}_WIN32_RC_FILE})
|
2014-12-01 19:55:22 +00:00
|
|
|
include_directories(${TR_NAME}-cli ${CURL_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(${TR_NAME}-cli ${TR_NAME})
|
|
|
|
|
|
|
|
install(TARGETS ${TR_NAME}-cli DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
|
|
|
|
if(INSTALL_DOC)
|
|
|
|
install(FILES ${TR_NAME}-cli.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
|
|
|
endif()
|