# #muparser # #Parser for mathematical expressions # if (MSVC) ExternalProject_Add ( muparser PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #When running configure, the current directory must be the source directory URL https://github.com/beltoforion/muparser/archive/v2.2.5.tar.gz DOWNLOAD_NAME muparser-2.2.5.tar.gz URL_MD5 02dae671aa5ad955fdcbcd3fee313fb7 CONFIGURE_COMMAND "" BUILD_COMMAND cd build COMMAND nmake -fmakefile.vc DEBUG=0 SHARED=0 SAMPLES=0 INSTALL_COMMAND ${CMAKE_COMMAND} -E copy /lib/muparser.lib /lib/muparser.lib COMMAND ${CMAKE_COMMAND} -E copy_directory /include /include ) endif (MSVC) if (UNIX) ExternalProject_Add ( muparser PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #When running configure, the current directory must be the source directory URL https://github.com/beltoforion/muparser/archive/v2.2.5.tar.gz DOWNLOAD_NAME muparser-2.2.5.tar.gz URL_MD5 02dae671aa5ad955fdcbcd3fee313fb7 CONFIGURE_COMMAND ./configure --enable-shared=no --enable-samples=no --enable-debug=no BUILD_COMMAND make INSTALL_COMMAND make install ) endif (UNIX)