cmake_minimum_required(VERSION 4.1.6)


add_library(noahLib SHARED)

set_target_properties(noahLib
    PROPERTIES 
    LIBRARY_OUTPUT_NAME noah
    PREFIX ""
)

target_compile_features(noahLib PUBLIC c_std_23)

target_include_directories(noahLib PUBLIC 
    ../../include
    ./.
)

target_link_libraries(noahLib
    PUBLIC
    luajit-5.1

    json-c
    m
)

target_sources(noahLib
    PUBLIC
    impls/linux/files/files.c
    inputs/inputs.c
    derivation/derivation.c
    hash/hash.c
    data/lua/luadata.c
    noah.c
)
