{"id":19879128,"url":"https://github.com/sakra/findmathematica","last_synced_at":"2026-02-28T05:17:18.371Z","repository":{"id":1221421,"uuid":"1140235","full_name":"sakra/FindMathematica","owner":"sakra","description":"CMake module for Mathematica.","archived":false,"fork":false,"pushed_at":"2025-01-25T15:30:50.000Z","size":571,"stargazers_count":61,"open_issues_count":3,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-25T16:24:47.366Z","etag":null,"topics":["cmake","librarylink","mathematica","mathlink"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sakra.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-12-05T12:25:13.000Z","updated_at":"2025-01-25T15:30:55.000Z","dependencies_parsed_at":"2024-05-02T20:57:57.241Z","dependency_job_id":"0508428c-1d3b-47a8-8608-c4834d731ed7","html_url":"https://github.com/sakra/FindMathematica","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakra%2FFindMathematica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakra%2FFindMathematica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakra%2FFindMathematica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakra%2FFindMathematica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakra","download_url":"https://codeload.github.com/sakra/FindMathematica/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309090,"owners_count":19941722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","librarylink","mathematica","mathlink"],"created_at":"2024-11-12T17:07:38.602Z","updated_at":"2025-10-28T23:18:25.143Z","avatar_url":"https://github.com/sakra.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"FindMathematica\n===============\n\nFindMathematica is a CMake module that tries to find a Wolfram Language installation and\nprovides CMake functions for its C/C++ interface.\n\nFeatures\n--------\n\n* Works with Windows, Linux and OS X versions of the [Wolfram Language][wlang].\n* Supports Wolfram Language versions from 5.2 to 14.3.\n* Supports Wolfram Language implementations [Wolfram Mathematica][wmma],\n  [Wolfram|One][wone], [Wolfram Engine][weng] and [Wolfram gridMathematica][wgrid].\n* Finds include directories and libraries for [LibraryLink][wll] (version 8 or later).\n* Finds include directories and libraries for [WSTP][wstp] (version 10 or later).\n* Finds installation directory and JAR file of [J/Link][jlnk].\n* Finds include directories and libraries for MathLink.\n* Finds installation directory of Wolfram MUnit testing package.\n* Provides exact version info for the Wolfram Language, LibraryLink, WSTP, MathLink, \n  J/Link and MUnit.\n* Allows for running Wolfram Language code during CMake configure or build time.\n* Allows for running Wolfram Language code as a pre-link, pre-build or post-build action.\n* Allows for running Wolfram Language code in CMake test targets.\n* Allows for running Wolfram Language MUnit test files and suites as CMake test targets.\n* Supports generating C code from WSTP template files using `wsprp` executable.\n* Supports generating C code from MathLink template files using `mprep` executable.\n* Supports building dynamic libraries loadable with [LibraryLink][wll].\n* Supports generating stand-alone C code from Wolfram Language code with [CCodeGenerator][ccg].\n* Provides CMake interface to Wolfram Language's [Encode][encd] function.\n* Supports generating Wolfram Language documentation with the DocumentationBuild package.\n* Fully leverages CMake's [cross-compiling][ccrc] support.\n\nRequirements\n------------\n\n* A [Wolfram Language][wlang] product (Wolfram Mathematica, Wolfram|One, Wolfram Engine, \n  Wolfram gridMathematica).\n* [CMake 3.10.0][cmk] or newer. The executable `cmake` should be on the system path.\n* [Visual Studio C++][vslstd], [MinGW][mingw] under Windows.\n* [GCC][gcc] or [Clang][clang] under Linux or OS X.\n* [Xcode][xcdt] application or Xcode Command Line Tools under OS X.\n* [libuuid][uuid] under Linux.\n* [Apache Ant][aant] is required for generating Wolfram Language documentation. \n\nInstallation\n------------\n\nCopy the directory `CMake/Mathematica` to the root directory of your CMake project. In the\ntop-level `CMakeList.txt` file, add the module directory to the CMake module search path:\n\n    set (CMAKE_MODULE_PATH \"${CMAKE_SOURCE_DIR}/CMake/Mathematica\" ${CMAKE_MODULE_PATH})\n\nUsage\n-----\n\nTo find the newest Wolfram Language installation in a CMake list file, run the `find_package`\ncommand:\n\n    find_package(Mathematica)\n\nSee the [FindMathematica manual][manual] for more information.\n\nAlternatives\n------------\n\nIn October 2020, Wolfram Research have released [LibraryLinkUtilities][wllu] as an open source\nproject that provides modern C++ wrappers for conveniently wrapping Wolfram LibraryLink code.\n\n[aant]:https://ant.apache.org/\n[ccg]:https://reference.wolfram.com/language/CCodeGenerator/guide/CCodeGenerator.html\n[ccrc]:https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling\n[clang]:https://clang.llvm.org/\n[cmk]:https://cmake.org/download/\n[encd]:https://reference.wolfram.com/language/ref/Encode.html\n[gcc]:https://gcc.gnu.org/\n[jlnk]:https://reference.wolfram.com/language/JLink/tutorial/Overview.html\n[manual]:https://github.com/sakra/FindMathematica/blob/master/MANUAL.md\n[mingw]:http://www.mingw.org/\n[uuid]:https://linux.die.net/man/3/libuuid\n[vslstd]:https://visualstudio.microsoft.com/\n[weng]:https://www.wolfram.com/engine\n[wgrid]:https://www.wolfram.com/gridmathematica/\n[wlang]:https://www.wolfram.com/language\n[wllu]:https://github.com/WolframResearch/LibraryLinkUtilities\n[wll]:https://reference.wolfram.com/language/guide/LibraryLink.html\n[wmma]:https://www.wolfram.com/mathematica/\n[wone]:https://www.wolfram.com/wolfram-one/\n[wstp]:https://reference.wolfram.com/language/tutorial/WSTPAndExternalProgramCommunicationOverview.html\n[xcdt]:https://developer.apple.com/xcode/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakra%2Ffindmathematica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakra%2Ffindmathematica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakra%2Ffindmathematica/lists"}