1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00
transmission/cli/CMakeLists.txt
Charles Kerr 6c77fa92ce
Port transmission-cli to C++ (#1831)
* move transmission-cli to C++
2021-09-24 09:38:09 -05:00

20 lines
590 B
CMake

project(trcli)
add_compile_options(${CXX_WARNING_FLAGS})
include_directories(${CMAKE_SOURCE_DIR})
tr_win32_app_info(${PROJECT_NAME}_WIN32_RC_FILE
"Transmission Utility ('cli', obsolete)"
"${TR_NAME}-cli"
"${TR_NAME}-cli.exe")
add_executable(${TR_NAME}-cli cli.cc ${${PROJECT_NAME}_WIN32_RC_FILE})
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()