CMake module for Mathematica.
FindMathematica is a CMake module that tries to find a Wolfram Language installation and provides CMake functions for its C/C++ interface.
wsprp
executable.mprep
executable.cmake
should be on the system path.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})
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.
In October 2020, Wolfram Research have released LibraryLinkUtilities as an open source project that provides modern C++ wrappers for conveniently wrapping Wolfram LibraryLink code.