2014-12-01 19:55:22 +00:00
|
|
|
project(trutils)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
|
|
|
|
foreach(P create edit 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")
|
|
|
|
|
|
|
|
add_executable(${TR_NAME}-${P} ${P}.c ${${PROJECT_NAME}_${P}_WIN32_RC_FILE})
|
2014-12-01 19:55:22 +00:00
|
|
|
include_directories(${TR_NAME}-${P} ${EVENT2_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS})
|
|
|
|
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()
|