summaryrefslogtreecommitdiff
path: root/src/tools/ovpn/CMakeLists.txt
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-10-22 14:52:51 +0200
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-10-22 16:38:44 +0200
commite161da9a580152e52a84c5ca31422355307bab42 (patch)
tree13af20c280476f95cbdf39bc19f5d43d8d7f02c7 /src/tools/ovpn/CMakeLists.txt
parent619502f7178fef30e726ba57b5a49b61c1c1a276 (diff)
downloadouroboros-e161da9a580152e52a84c5ca31422355307bab42.tar.gz
ouroboros-e161da9a580152e52a84c5ca31422355307bab42.zip
tools: Add ovpn application
This adds the ovpn application which allows to send TCP/IP traffic over Ouroboros. This is done by opening a TUN interface and allocating a flow to another ovpn application so that applications using TCP/IP can be used over Ouroboros as well. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/tools/ovpn/CMakeLists.txt')
-rw-r--r--src/tools/ovpn/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/ovpn/CMakeLists.txt b/src/tools/ovpn/CMakeLists.txt
new file mode 100644
index 00000000..f3a2cac8
--- /dev/null
+++ b/src/tools/ovpn/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)
+
+get_filename_component(CURRENT_SOURCE_PARENT_DIR
+ ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
+
+include_directories(${CURRENT_SOURCE_PARENT_DIR})
+
+set(SOURCE_FILES
+ # Add source files here
+ ovpn.c
+ )
+
+add_executable(ovpn ${SOURCE_FILES})
+
+target_link_libraries(ovpn LINK_PUBLIC ouroboros-dev)
+
+install(TARGETS ovpn RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})