cmake_minimum_required(VERSION 3.28)


###############################################################################
# Options

option(WHLJS_BUILD_DOCS_GENERATOR "Build documentation generator" OFF)


###############################################################################
# Dependencies

find_package(whalejs-core CONFIG)
find_package(whale-sfx CONFIG)


###############################################################################
# whalejs-sfx

whljs_project(sfx VERSION 0.4.0)

whljs_module(sfx)

whljs_module_sources(sfx
  PRIVATE
    "src/export.cpp"
)

whljs_link_whale_libraries(sfx
  sfx
)

whljs_link_whalejs_modules(sfx
  core
)

whljs_compile_definitions(sfx
  PRIVATE
    WHLJS_SFX_BUILD
)

whljs_module_install(sfx)
