
if(WIN32)
    SET(MEM_MAP_SOURCE mem_map_win32.c)
elseif(UNIX)
    SET(MEM_MAP_SOURCE mem_map_posix.c)
else()
    MESSAGE(FATAL_ERROR "don't have a mem_map.c usable for this system")
endif()

MESSAGE("MEM_MAP_SOURCE = ${MEM_MAP_SOURCE}")

add_library(misc OBJECT
    checksum_crc32.cc
    win32_defs.c
    #SigFlag.cc
    ${MEM_MAP_SOURCE}
)



target_include_directories(misc PUBLIC
    ${CMAKE_BINARY_DIR}/src/config
)

install(FILES
    ccstream.hh
    checksum_crc32.hh
    gds_fpclass.hh
    lcl_array.hh
    ManyFlags.hh
    redirect_std.hh
    #SigFlag.hh
    SysError.hh
    test_endian.hh
    tri_state.hh
    DESTINATION include/gds-sigp
)
