summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCrypt/CMakeLists.txt
blob: 6ecc98ca1c4eb7e9149100be54f796605fd2bff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# HACK ALERT!
# To avoid a circular dependency chain with LibCrypt --> LibCrypto --> LibCore --> LibCrypt
# We include the SHA2 implementation from LibCrypto here manually
add_library(LibCryptSHA2 OBJECT ../LibCrypto/Hash/SHA2.cpp)
set_target_properties(LibCryptSHA2 PROPERTIES CXX_VISIBILITY_PRESET hidden)
set_target_properties(LibCryptSHA2 PROPERTIES VISIBILITY_INLINES_HIDDEN ON)

set(SOURCES
    crypt.cpp
)

serenity_lib(LibCrypt crypt)
serenity_install_headers("")
target_link_libraries(LibCrypt PRIVATE LibCryptSHA2)