Home

Awesome

FindMathematica

FindMathematica is a CMake module that tries to find a Wolfram Language installation and provides CMake functions for its C/C++ interface.

Features

Requirements

Installation

Copy the directory CMake/Mathematica to the root directory of your CMake project. In the top-level CMakeList.txt file, add the module directory to the CMake module search path:

set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/Mathematica" ${CMAKE_MODULE_PATH})

Usage

To find the newest Wolfram Language installation in a CMake list file, run the find_package command:

find_package(Mathematica)

See the FindMathematica manual for more information.

Alternatives

In October 2020, Wolfram Research have released LibraryLinkUtilities as an open source project that provides modern C++ wrappers for conveniently wrapping Wolfram LibraryLink code.