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})