mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
13 lines
372 B
CMake
13 lines
372 B
CMake
project(trcli)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
add_executable(${TR_NAME}-cli cli.c)
|
|
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()
|