mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Move sha256.c to lib/
Precompiled headers don't work if we're not a pure C++ project.
This commit is contained in:
parent
3120558dd1
commit
cdbbac5b6d
9 changed files with 27 additions and 10 deletions
14
lib/sha256/CMakeLists.txt
Normal file
14
lib/sha256/CMakeLists.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
project(sha256 C)
|
||||
|
||||
add_library(sha256 STATIC sha256.c)
|
||||
|
||||
target_include_directories(sha256 INTERFACE .)
|
||||
|
||||
INCLUDE(CheckIncludeFiles)
|
||||
check_include_files(endian.h HAVE_ENDIAN_H)
|
||||
|
||||
configure_file(
|
||||
"${PROJECT_SOURCE_DIR}/cmake_config.h.in"
|
||||
"${PROJECT_BINARY_DIR}/cmake_config.h"
|
||||
)
|
||||
target_include_directories(sha256 PRIVATE "${PROJECT_BINARY_DIR}")
|
Loading…
Add table
Add a link
Reference in a new issue