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-bmfont CONFIG)


###############################################################################
# whalejs-bmfont

whljs_project(bmfont VERSION 0.4.0)

whljs_module(bmfont)

whljs_module_sources(bmfont
  PRIVATE
  "include/whalejs/bmfont/export.h"
  
  "src/export.cpp"
)

whljs_link_whale_libraries(bmfont
  bmfont
)

whljs_link_whalejs_modules(bmfont
  core
)

whljs_compile_definitions(bmfont
  PRIVATE
    WHLJS_BMFONT_BUILD
)

whljs_module_install(bmfont)
