summaryrefslogtreecommitdiff
path: root/src/ipcpd/local/CMakeLists.txt
blob: af433d01d9aea8d6fa08bde0b45d61e303512ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Local IPCP build configuration

add_executable(${IPCP_LOCAL_TARGET}
  main.c
  reg.c
  ${IPCP_SOURCES}
)

target_include_directories(${IPCP_LOCAL_TARGET} PRIVATE ${IPCP_INCLUDE_DIRS})
target_link_libraries(${IPCP_LOCAL_TARGET} PRIVATE ouroboros-dev)

ouroboros_target_debug_definitions(${IPCP_LOCAL_TARGET})

if(IPCP_LOCAL_POLLING)
  target_compile_definitions(${IPCP_LOCAL_TARGET} PRIVATE CONFIG_IPCP_LOCAL_POLLING)
endif()

install(TARGETS ${IPCP_LOCAL_TARGET} RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})