# Copyright (c) 2026 Dominic Masters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

# Includes. core/ and vm/ are their own include roots: their own headers
# include each other as "value/scriptvalue.h", "execute/scriptvmcode.h" and so
# on, with no "script/" prefix, the same as duskscriptcc's copy of core/.
target_include_directories(${DUSK_LIBRARY_TARGET_NAME}
  PUBLIC
    ${CMAKE_CURRENT_LIST_DIR}/core
    ${CMAKE_CURRENT_LIST_DIR}/vm
)

target_link_libraries(${DUSK_LIBRARY_TARGET_NAME} PUBLIC m)

target_sources(${DUSK_LIBRARY_TARGET_NAME}
  PUBLIC
    script.c
)

# Subdirs
add_subdirectory(core)
add_subdirectory(vm)
add_subdirectory(native)
