diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-03 00:20:18 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-08-03 13:10:54 +0200 |
commit | ca494922f3815077efbcd28da3748df38c8a6961 (patch) | |
tree | 6e80ca15368a75908ba4053ceb07c25269ae786c /src/tools/oping/CMakeLists.txt | |
parent | a6e8978fd9b5786607438689f8cd8b8efb8ef77e (diff) | |
download | ouroboros-ca494922f3815077efbcd28da3748df38c8a6961.tar.gz ouroboros-ca494922f3815077efbcd28da3748df38c8a6961.zip |
tools: Add a ping application
Ouoroboros ping application mimics the GNU ping application.
do "oping --help" for options.
Diffstat (limited to 'src/tools/oping/CMakeLists.txt')
-rw-r--r-- | src/tools/oping/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/oping/CMakeLists.txt b/src/tools/oping/CMakeLists.txt new file mode 100644 index 00000000..a8fc7d86 --- /dev/null +++ b/src/tools/oping/CMakeLists.txt @@ -0,0 +1,21 @@ +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +include_directories(${CMAKE_SOURCE_DIR}/include) +include_directories(${CMAKE_BINARY_DIR}/include) + +find_library(LIBM_LIBRARIES m) +if(NOT LIBM_LIBRARIES) + message(FATAL_ERROR "libm not found") +endif() + +set(SOURCE_FILES + # Add source files here + oping.c +) + +add_executable(oping ${SOURCE_FILES}) + +target_link_libraries(oping LINK_PUBLIC ${LIBM_LIBRARIES} ouroboros) + +install(TARGETS oping RUNTIME DESTINATION usr/bin) |