Skip to content

Skyb0rg007/xeus-sml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xeus-SML

Bindings for Xeus for Standard ML

Installation

$ mkdir _build
$ cd _build
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
$ cmake --build .
$ cmake --build . --target install

Usage

find_package(xeus-sml 0.1.0 REQUIRED)

set(KERNEL_DISPLAY_NAME "...")
set(KERNEL_LANGUAGE "...")
set(KERNEL_EXECUTABLE_PATH "...")
xeus_sml_create_kernel(${CMAKE_CURRENT_BINARY_DIR}/kernel.json)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kernel.json
    DESTINATION ${CMAKE_INSTALL_DATADIR}/jupyter/kernels/${KERNEL_LANGUAGE}/kernel.json)

add_custom_command(
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lang.0.o
    COMMAND mlton -output lang -mlb-path-var XEUS_SML ${XEUS_SML_PATH_MAP} lang.mlb
    DEPENDS ...)
install(FILES lang DESTINATION ${CMAKE_INSTALL_BINDIR}/lang)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published