CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  1. list (APPEND everest_src)
  2. list (APPEND everest_inc_public)
  3. list (APPEND everest_inc)
  4. list (APPEND everest_def)
  5. set(everest_src
  6. ${CMAKE_CURRENT_SOURCE_DIR}/library/everest.c
  7. ${CMAKE_CURRENT_SOURCE_DIR}/library/x25519.c
  8. ${CMAKE_CURRENT_SOURCE_DIR}/library/Hacl_Curve25519_joined.c
  9. )
  10. list(APPEND everest_inc_public ${CMAKE_CURRENT_SOURCE_DIR}/include)
  11. list(APPEND everest_inc ${CMAKE_CURRENT_SOURCE_DIR}/include/everest ${CMAKE_CURRENT_SOURCE_DIR}/include/everest/kremlib)
  12. if(INSTALL_MBEDTLS_HEADERS)
  13. install(DIRECTORY include/everest
  14. DESTINATION include
  15. FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
  16. DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
  17. FILES_MATCHING PATTERN "*.h")
  18. endif(INSTALL_MBEDTLS_HEADERS)
  19. set(thirdparty_src ${thirdparty_src} ${everest_src} PARENT_SCOPE)
  20. set(thirdparty_inc_public ${thirdparty_inc_public} ${everest_inc_public} PARENT_SCOPE)
  21. set(thirdparty_inc ${thirdparty_inc} ${everest_inc} PARENT_SCOPE)
  22. set(thirdparty_def ${thirdparty_def} ${everest_def} PARENT_SCOPE)