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


###############################################################################
# whalejs-pyxel

whljs_project(pyxel VERSION 0.4.0)

whljs_module(pyxel)

whljs_module_sources(pyxel
  PRIVATE
    "include/whalejs/pyxel/export.h"
    "include/whalejs/pyxel/pyxel.h"

    "src/export.cpp"
)

whljs_link_whale_libraries(pyxel
  pyxel
)

whljs_link_whalejs_modules(pyxel
  core
)

whljs_compile_definitions(pyxel
  PRIVATE
    WHLJS_PYXEL_BUILD
)

whljs_module_install(pyxel)
