2022-09-19 01:53:11 +00:00
|
|
|
SET(DHCPD_PROJECT_TARGET opendhcpd)
|
|
|
|
|
|
|
|
PROJECT(${DHCPD_PROJECT_TARGET} CXX)
|
|
|
|
|
2022-11-07 06:22:42 +00:00
|
|
|
add_definitions(-Wno-write-strings)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(../libs/include ./ ../httpserver/include)
|
2022-09-19 01:53:11 +00:00
|
|
|
|
|
|
|
FILE(GLOB DHCPD_HEADS ./*.h)
|
|
|
|
|
2022-10-08 03:00:35 +00:00
|
|
|
ADD_DEFINITIONS(-Wno-format-overflow -std=c++11)
|
2022-09-19 01:53:11 +00:00
|
|
|
#ADD_EXECUTABLE(${PROJECT_TARGET} opendhcpd.cpp ${DHCPD_HEADS})
|
2022-10-11 01:19:15 +00:00
|
|
|
ADD_LIBRARY(${DHCPD_PROJECT_TARGET} opendhcpd.cpp ${DHCPD_HEADS} query.cpp)
|
2022-09-19 01:53:11 +00:00
|
|
|
|
|
|
|
#TARGET_LINK_LIBRARIES(${PROJECT_TARGET} -lpthread)
|