summaryrefslogtreecommitdiff
path: root/accel-pptpd/extra/CMakeLists.txt
blob: 5578e9304387c956203a9d26edba61d6452f8eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ADD_LIBRARY(pppd_compat SHARED pppd_compat.c)
ADD_LIBRARY(ippool SHARED ippool.c)
ADD_LIBRARY(sigchld SHARED sigchld.c)
ADD_LIBRARY(chap-secrets SHARED chap-secrets.c)

INSTALL(TARGETS pppd_compat ippool sigchld chap-secrets
	LIBRARY DESTINATION lib/accel-pptp
)

IF (SHAPER)
	ADD_LIBRARY(shaper_tbf SHARED shaper_tbf.c)
	IF (LIBNL_PREFIX)
		SET_PROPERTY(TARGET shaper_tbf PROPERTY COMPILE_FLAGS "-I${LIBNL_PREFIX}/include")
		SET_PROPERTY(TARGET shaper_tbf PROPERTY LINK_FLAGS "-L${LIBNL_PREFIX}/lib")
	ENDIF (LIBNL_PREFIX)
	TARGET_LINK_LIBRARIES(shaper_tbf nl m)
	INSTALL(TARGETS shaper_tbf LIBRARY DESTINATION lib/accel-pptp)
ENDIF (SHAPER)