summaryrefslogtreecommitdiff
path: root/cmake/tools/oping.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/tools/oping.cmake')
-rw-r--r--cmake/tools/oping.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/tools/oping.cmake b/cmake/tools/oping.cmake
new file mode 100644
index 00000000..6bb18132
--- /dev/null
+++ b/cmake/tools/oping.cmake
@@ -0,0 +1,4 @@
+add_executable(oping "${TOOLS_SOURCE_DIR}/oping/oping.c")
+target_include_directories(oping PRIVATE ${TOOLS_INCLUDE_DIRS})
+target_link_libraries(oping PUBLIC ${LIBM_LIBRARIES} ouroboros-dev)
+install(TARGETS oping RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})