blob: 95a3e48c3593d5ad8d4f5608efcfb15cd082f602 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function(add_util action src)
set(target "service_${action}")
set(name "${action}_service")
add_executable("${target}" ${src})
target_link_libraries("${target}" PRIVATE service)
set_target_properties("${target}" PROPERTIES OUTPUT_NAME "${name}")
install(TARGETS "${target}" RUNTIME DESTINATION bin)
install_pdbs(TARGETS "${target}" DESTINATION bin)
endfunction()
add_util(install install_service.cpp)
add_util(start start_service.cpp)
add_util(stop stop_service.cpp)
add_util(uninstall uninstall_service.cpp)
|