mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
a942c67199
* deps: use fmt (8.1.1 tag) to build log strings Co-authored-by: Mike Gelfand <mikedld@mikedld.com>
33 lines
796 B
CMake
33 lines
796 B
CMake
project(trutils)
|
|
|
|
add_compile_options(${CXX_WARNING_FLAGS})
|
|
|
|
add_definitions(
|
|
${LIBFMT_DEFINITIONS}
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}
|
|
)
|
|
include_directories(
|
|
SYSTEM
|
|
${EVENT2_INCLUDE_DIRS}
|
|
${CURL_INCLUDE_DIRS}
|
|
${LIBFMT_INCLUDE_DIRS}
|
|
)
|
|
|
|
foreach(P create edit remote show)
|
|
tr_win32_app_info(${PROJECT_NAME}_${P}_WIN32_RC_FILE
|
|
"Transmission Utility ('${P}')"
|
|
"${TR_NAME}-${P}"
|
|
"${TR_NAME}-${P}.exe")
|
|
|
|
add_executable(${TR_NAME}-${P} ${P}.cc ${${PROJECT_NAME}_${P}_WIN32_RC_FILE})
|
|
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()
|