summaryrefslogtreecommitdiffstats
path: root/src/methods/CMakeLists.txt
blob: 55f41d29ddb976abd819a12076c9c2a5109026b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set(METHODS null)

if(WITH_METHOD_XSALSA20_POLY1305)
  list(APPEND METHODS xsalsa20_poly1305)
endif(WITH_METHOD_XSALSA20_POLY1305)

if(WITH_METHOD_AES128_GCM)
  list(APPEND METHODS aes128_gcm)
endif(WITH_METHOD_AES128_GCM)


set(METHOD_OBJECTS "")

foreach(method ${METHODS})
  add_subdirectory(${method})
  list(APPEND METHOD_OBJECTS $<TARGET_OBJECTS:method_${method}>)
endforeach(method)

set(METHOD_OBJECTS "${METHOD_OBJECTS}" PARENT_SCOPE)