From 30d91f3b55c01a9dcc32c894db678801c7f9c1c6 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 28 Jul 2021 19:21:23 +0300 Subject: add wrapper script --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 18493d0..c0eb30d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,15 @@ -cmake_minimum_required(VERSION 3.19) +cmake_minimum_required(VERSION 3.10) project(captive-netns-helper C) set(CMAKE_C_STANDARD 99) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) - set(CMAKE_INSTALL_PREFIX /usr/local/bin) + set(CMAKE_INSTALL_PREFIX /usr/local) endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) add_executable(captive-netns-helper main.c) install(TARGETS captive-netns-helper - RUNTIME DESTINATION bin) \ No newline at end of file + RUNTIME DESTINATION bin) +install(FILES captive-portal.sh + PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + DESTINATION bin) \ No newline at end of file -- cgit v1.2.3