From 48c294105f5123dc876fbad199ec1e0166d82a18 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Tue, 23 Dec 2025 11:59:45 +0100 Subject: build: Refactor CMake modules This moves the CMake build logic out of the source tree and splits it up into a more modular form. The tests now have a CMakeLists.txt file in their respective source directory. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- cmake/ipcp/local.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cmake/ipcp/local.cmake (limited to 'cmake/ipcp/local.cmake') diff --git a/cmake/ipcp/local.cmake b/cmake/ipcp/local.cmake new file mode 100644 index 00000000..9e320aad --- /dev/null +++ b/cmake/ipcp/local.cmake @@ -0,0 +1,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}) -- cgit v1.2.3