aboutsummaryrefslogtreecommitdiff
path: root/src/hash/md5/CMakeLists.txt
blob: 6e2cb57a917ebf2e09d9f1d701ebfff61e86fed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
list(APPEND
	MD5_SOURCES
    ${CMAKE_CURRENT_SOURCE_DIR}/global.h
    ${CMAKE_CURRENT_SOURCE_DIR}/md5.h
    ${CMAKE_CURRENT_SOURCE_DIR}/md5c.c
)

add_library(md5 STATIC ${MD5_SOURCES})
target_compile_options(md5 PUBLIC ${CFLAGS})

target_include_directories(md5 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

if (ENABLE_TESTS)
    add_subdirectory(tests)
endif()