You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
412 B
23 lines
412 B
if (NOT MSVC)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
|
endif()
|
|
|
|
set(FILES util.h
|
|
io.c
|
|
internal.c
|
|
ethash.h
|
|
endian.h
|
|
compiler.h
|
|
fnv.h
|
|
data_sizes.h)
|
|
|
|
if (MSVC)
|
|
list(APPEND FILES util_win32.c io_win32.c mmap_win32.c)
|
|
else()
|
|
list(APPEND FILES io_posix.c)
|
|
endif()
|
|
|
|
list(APPEND FILES sha3.c sha3.h)
|
|
|
|
add_library(ethash ${FILES})
|
|
|
|
|