summaryrefslogtreecommitdiff
path: root/cmake/ipcp/local.cmake
blob: 9e320aad5bc29ec0966e241f196d7974dc365518 (plain)
1
2
3
4
5
6
7
8
9
10
11
set(LOCAL_SOURCE_DIR "${IPCP_SOURCE_DIR}/local")

set(IPCP_LOCAL_TARGET ipcpd-local CACHE INTERNAL "")

set(IPCP_LOCAL_MPL 100 CACHE STRING
  "Default maximum packet lifetime for the Local IPCP, in ms")

add_executable(${IPCP_LOCAL_TARGET} "${LOCAL_SOURCE_DIR}/main.c" ${IPCP_SOURCES})
target_include_directories(${IPCP_LOCAL_TARGET} PRIVATE ${IPCP_INCLUDE_DIRS})
target_link_libraries(${IPCP_LOCAL_TARGET} PUBLIC ouroboros-dev)
install(TARGETS ${IPCP_LOCAL_TARGET} RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})