-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 946 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.16)
project(
isc-kea-hook
VERSION 3.0.1
DESCRIPTION
"Hook library for isc kea(https://kea.isc.org/), the library controls IP assignment."
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_library(
schmatrix-${PROJECT_NAME} SHARED
src/callouts.cc src/logger.cc src/messages.cc src/globals.h
src/framework_functions.cc)
target_link_libraries(
schmatrix-${PROJECT_NAME}
PRIVATE kea-dhcpsrv
kea-dhcp++
kea-hooks
kea-log
kea-util
kea-exceptions
kea-database
pq)
target_include_directories(schmatrix-${PROJECT_NAME}
PRIVATE /usr/include/kea /usr/include/postgresql)
install(TARGETS schmatrix-${PROJECT_NAME}
LIBRARY DESTINATION /usr/lib/x86_64-linux-gnu/kea/hooks)
install(FILES config/kea-dhcp4.conf DESTINATION /etc/kea/)