blob: 3e24a64eb728addb4bd096af44bcaafbaec02471 (
plain)
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
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
IF (CRYPTO STREQUAL INTERNAL OR CRYPTO STREQUAL TOMCRYPT)
SET(sources crypto.c)
IF (CRYPTO STREQUAL INTERNAL)
SET(sources
${sources}
crypto.c
md4.c
md5.c
sha1.c
des.c
)
ENDIF(CRYPTO STREQUAL INTERNAL)
ADD_LIBRARY(internal-crypto SHARED ${sources})
IF (CRYPTO STREQUAL TOMCRYPT)
TARGET_LINK_LIBRARIES(internal-crypto tomcrypt)
ENDIF(CRYPTO STREQUAL TOMCRYPT)
INSTALL(TARGETS internal-crypto LIBRARY DESTINATION lib${LIB_SUFFIX}/accel-ppp )
ENDIF(CRYPTO STREQUAL INTERNAL OR CRYPTO STREQUAL TOMCRYPT)
|