@@ -52,12 +52,12 @@ By default FindMathematica will return the newest *Mathematica* installation it
5252To find a minimum version of * Mathematica* , run the ` find_package ` command with a version
5353argument:
5454
55- find_package(Mathematica 9 .0)
55+ find_package(Mathematica 10 .0)
5656
5757To find a specific version of * Mathematica* , run the ` find_package ` command with a version
5858argument and the parameter ` EXACT ` :
5959
60- find_package(Mathematica 9 .0.1 EXACT)
60+ find_package(Mathematica 10 .0.2 EXACT)
6161
6262Depending on the version of * Mathematica* , the FindMathematica module will try to find the
6363components ` MathLink ` , ` WolframLibrary ` , ` WSTP ` , ` JLink ` and ` MUnit ` . To explicitly specify the
@@ -302,7 +302,7 @@ The module defines the following variables for component `MathLink`:
302302* ` Mathematica_MathLink_LIBRARIES ` - MathLink library for all target platforms and required system libraries
303303* ` Mathematica_MathLink_MPREP_EXECUTABLE ` - path to host ` mprep ` executable (MathLink template file preprocessor)
304304* ` Mathematica_MathLink_HOST_INCLUDE_DIR ` - header file mathlink.h include directory for host platform
305- * ` Mathematica_MathLink_DEFINITIONS ` - MathLink compile definitions
305+ * ` Mathematica_MathLink_DEFINITIONS ` - MathLink compile definitions, e.g., "-DMLINTERFACE=3"
306306* ` Mathematica_MathLink_LINKER_FLAGS ` - MathLink linker flags
307307* ` Mathematica_MathLink_VERSION ` - MathLink version number given as "interface.revision"
308308* ` Mathematica_MathLink_VERSION_MAJOR ` - MathLink interface number
@@ -320,7 +320,7 @@ The module defines the following variables for component `WSTP`:
320320* ` Mathematica_WSTP_LIBRARIES ` - WSTP library for all target platforms and required system libraries
321321* ` Mathematica_WSTP_WSPREP_EXECUTABLE ` - path to host ` wsprep ` executable (WSTP template file preprocessor)
322322* ` Mathematica_WSTP_HOST_INCLUDE_DIR ` - header file wstp.h include directory for host platform
323- * ` Mathematica_WSTP_DEFINITIONS ` - WSTP compile definitions
323+ * ` Mathematica_WSTP_DEFINITIONS ` - WSTP compile definitions, e.g., "-DWSINTERFACE=4"
324324* ` Mathematica_WSTP_LINKER_FLAGS ` - WSTP linker flags
325325* ` Mathematica_WSTP_VERSION ` - WSTP version number given as "interface.revision"
326326* ` Mathematica_WSTP_VERSION_MAJOR ` - WSTP interface number
@@ -622,7 +622,8 @@ The output file is created in the `CMAKE_CURRENT_BINARY_DIR`. The name of the ou
622622obtained by adding the extensions .c to the input file base name. The ` OUTPUT ` option can be used to
623623produce an output file with a different name.
624624
625- This function is available if the * Mathematica* kernel executable has been found.
625+ This function is available if the * Mathematica* kernel executable has been found. Note that the
626+ function ` Splice ` has been deprecated as of * Mathematica* 10.
626627
627628 Mathematica_ENCODE(
628629 <input file> [ <input file> ... ]
@@ -685,9 +686,9 @@ Under OS X this function replaces the default install names used for *Mathematic
685686libraries with absolute paths to those shared libraries for the given targets. On other platforms
686687the function does not have an effect.
687688
688- E.g., in * Mathematica* 8 the default install name for the MathLink shared library is:
689+ E.g., in * Mathematica* 10 the default install name for the MathLink shared library is:
689690
690- @executable_path/../Frameworks/mathlink.framework/Versions/3.16 /mathlink
691+ @executable_path/../Frameworks/mathlink.framework/Versions/4.25 /mathlink
691692
692693This path won't work for stand-alone executables that link to the dynamic MathLink library, unless
693694the mathlink framework directory is added to the ` DYLD_LIBRARY_PATH ` environment variable. This
@@ -738,6 +739,7 @@ This function is available if the MathLink executable `mprep` has been found.
738739 [ SYSTEM_ID systemID ]
739740 [ KERNEL_OPTIONS <flag> [ <flag> ...] ]
740741 [ LINK_PROTOCOL <protocol> ]
742+ [ LINK_MODE Launch | ParentConnect ]
741743 [ INPUT text | INPUT_FILE file ]
742744 [ CONFIGURATIONS [ Debug | Release | ... ] ])
743745
@@ -752,10 +754,13 @@ The given *Mathematica* test code is wrapped in the following way:
752754 run <script file>
753755 Uninstall[link]
754756
757+ This corresponds to setting the ` LINK_MODE ` parameter to ` ParentConnect ` .
758+
755759If neither ` CODE ` nor ` SCRIPT ` are present, the generated CMake test will launch the MathLink target
756- executable as a front-end to the * Mathematica* kernel.
760+ executable as a front-end to the * Mathematica* kernel. This corresponds to setting the ` LINK_MODE `
761+ parameter to ` Launch ` .
757762
758- The ` LINK_PROTOCOL ` specifies the MathLink link protocol (e.g., ` "TCPIP" ` ) to use.
763+ The ` LINK_PROTOCOL ` parameter specifies the MathLink link protocol (e.g., ` "TCPIP" ` ) to use.
759764
760765The text specified by the ` INPUT ` option is fed to the launched executable as standard input.
761766The ` INPUT_FILE ` option specifies a file that is fed to the launched executable as standard input.
@@ -816,6 +821,7 @@ This function behaves as `Mathematica_MathLink_ADD_EXECUTABLE` but uses WSTP ins
816821 [ SYSTEM_ID systemID ]
817822 [ KERNEL_OPTIONS <flag> [ <flag> ...] ]
818823 [ LINK_PROTOCOL <protocol> ]
824+ [ LINK_MODE Launch | ParentConnect ]
819825 [ INPUT text | INPUT_FILE file ]
820826 [ CONFIGURATIONS [ Debug | Release | ... ] ])
821827
@@ -839,6 +845,7 @@ MathLink.
839845 [ SYSTEM_ID systemID ]
840846 [ KERNEL_OPTIONS <flag> [ <flag> ...] ]
841847 [ LINK_PROTOCOL <protocol> ]
848+ [ LINK_MODE Launch | ParentConnect ]
842849 [ INPUT text | INPUT_FILE file ]
843850 [ CONFIGURATIONS [ Debug | Release | ... ] ])
844851
@@ -853,8 +860,11 @@ The given *Mathematica* test code is wrapped in the following way:
853860 <stmnts>
854861 run <script file>
855862
863+ This corresponds to setting the ` LINK_MODE ` parameter to ` ParentConnect ` .
864+
856865If neither ` CODE ` nor ` SCRIPT ` are present, the generated CMake test will launch the Java JAR target
857- as a front-end to the * Mathematica* kernel.
866+ as a front-end to the * Mathematica* kernel. This corresponds to setting the ` LINK_MODE ` parameter
867+ to ` Launch ` .
858868
859869The ` LINK_PROTOCOL ` specifies the MathLink link protocol (e.g., ` "TCPIP" ` ) to use.
860870
@@ -882,7 +892,7 @@ This function is available if the *Mathematica* kernel executable has been found
882892 result [RELATIVE path]
883893 <test file> [ <test file> ... ] )
884894
885- This function resolves ` TestSuite[{ ... }] ` expressions in the given MUnit test files (.mt)
895+ This function resolves ` TestSuite[{ ... }] ` expressions in the given MUnit test files (.mt or .wlt )
886896into the list of underlying MUnit test files. The test file names are interpreted relative to
887897the test suite file. By default the function returns the absolute paths of the parsed test
888898files. If the ` RELATIVE ` option is specified, results will be returned as a relative path to
@@ -903,7 +913,7 @@ found.
903913 [ TIMEOUT seconds ]
904914 [ CONFIGURATIONS [ Debug | Release | ... ] ])
905915
906- This function adds a CMake test which runs a Wolfram MUnit test file (.mt) or notebook . If the test
916+ This function adds a CMake test which runs a Wolfram MUnit test file (.mt or .wlt) . If the test
907917file contains a ` TestSuite[{ ... }] ` expression, all the test files that belong to the suite will be
908918run.
909919
@@ -991,8 +1001,10 @@ just generate an empty documentation directory. This function is available if J/
9911001Known Issues
9921002------------
9931003
994- * On Windows linking to the ` WolframRTL_Static_Minimal.lib ` library under Cygwin or MinGW fails.
1004+ * Each invocation of a * Mathematica* kernel through the FindMathematica module consumes one
1005+ Mathematica controller kernel license. You may run out of controller kernel licenses, if you
1006+ do a parallel build with CMake or run tests in parallel with CTest.
9951007
9961008[ aant ] :http://ant.apache.org/
9971009[ cgwn ] :http://www.cygwin.com/
998- [ cmtut ] :http://www.cmake.org/cmake/help/cmake_tutorial.html
1010+ [ cmtut ] :http://www.cmake.org/cmake-tutorial/
0 commit comments