cmake_minimum_required(VERSION 3.18) project('ifname') add_executable(ifnow src/main.c src/tun.c src/now.c) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -ggdb") target_include_directories(ifnow PUBLIC ./include/) set_target_properties(ifnow PROPERTIES LINK_LIBRARIES -pthread)