migrate to cmake
This commit is contained in:
parent
ee64c84ea4
commit
317e5fd090
2 changed files with 10 additions and 15 deletions
10
CMakeLists.txt
Normal file
10
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
cmake_minimum_required(VERSION 4.0)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
project(pupdns VERSION 0.1)
|
||||
|
||||
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS src/*.c)
|
||||
add_executable(pupdns ${SRC_FILES})
|
||||
|
||||
target_include_directories(pupdns PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
15
build.sh
15
build.sh
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/env bash
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
INCLUDE_DIR=${SCRIPT_DIR}/include
|
||||
SRC_DIR=${SCRIPT_DIR}/src
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-I${INCLUDE_DIR}
|
||||
|
||||
EXE=pupdns
|
||||
|
||||
SRCS=${SRC_DIR}/*.c
|
||||
DEPS=${INCLUDE_DIR}/*.h
|
||||
|
||||
${CC} -o ${EXE} ${SRCS} ${CFLAGS}
|
||||
Loading…
Add table
Add a link
Reference in a new issue