CMakeLists.txt 344 B

1234567891011121314
  1. project(sha256 C)
  2. add_library(sha256 STATIC sha256.c)
  3. target_include_directories(sha256 INTERFACE .)
  4. INCLUDE(CheckIncludeFiles)
  5. check_include_files(endian.h HAVE_ENDIAN_H)
  6. configure_file(
  7. "${PROJECT_SOURCE_DIR}/cmake_config.h.in"
  8. "${PROJECT_BINARY_DIR}/cmake_config.h"
  9. )
  10. target_include_directories(sha256 PRIVATE "${PROJECT_BINARY_DIR}")