CMakeLists.txt 342 Bytes
Newer Older
Deucе's avatar
Deucе committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project (Hash C)
find_package(XPDev QUIET CONFIG PATHS lib/cmake/XPDev)

cmake_minimum_required(VERSION 3.11)

set(SOURCE
	crc16.c
	crc32.c
	md5.c
	sha1.c
)

set(HEADER
	crc16.h
	crc32.h
	md5.h
	sha1.h
)

add_library(hash OBJECT ${SOURCE})
target_include_directories(hash PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(hash xpdev)