• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_library(everest
2  library/everest.c
3  library/x25519.c
4  library/Hacl_Curve25519_joined.c)
5
6target_include_directories(everest
7  PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
8         $<BUILD_INTERFACE:${MBEDTLS_DIR}/include>
9         $<INSTALL_INTERFACE:include>
10  PRIVATE include/everest
11          include/everest/kremlib
12          ${MBEDTLS_DIR}/library/)
13
14if(INSTALL_MBEDTLS_HEADERS)
15
16  install(DIRECTORY include/everest
17    DESTINATION include
18    FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
19    DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
20    FILES_MATCHING PATTERN "*.h")
21
22endif(INSTALL_MBEDTLS_HEADERS)
23
24install(TARGETS everest
25  EXPORT MbedTLSTargets
26  DESTINATION ${LIB_INSTALL_DIR}
27  PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
28