blob: b3edc2e9251fa469ff4eee4eb473752263db2feb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
set(src
monkey.c
mk_signals.c
)
add_executable(monkey-bin ${src})
target_link_libraries(monkey-bin monkey-core-static)
set_target_properties(monkey-bin PROPERTIES OUTPUT_NAME monkey)
if(MK_BUILD_LOCAL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../${CMAKE_CURRENT_BINARY_DIR}/")
else()
install(TARGETS monkey-bin RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_SBINDIR})
configure_file (
"${CMAKE_CURRENT_SOURCE_DIR}/systemd.in"
"${PROJECT_SOURCE_DIR}/monkey.service"
)
if(SYSTEMD_DIR)
install(FILES ${PROJECT_SOURCE_DIR}/monkey.service DESTINATION ${SYSTEMD_DIR})
endif()
endif()
|