summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: c0eb30d4aac0cacf8af4c4b87e236c05c6885408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)

add_executable(captive-netns-helper main.c)
install(TARGETS captive-netns-helper
        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)