# #SWIG - interface compiler for scripting languages # if (WIN32) #Building swig from source using Visual Studio is a hopeless case - autotools all the way... #Install from a binary distribution instead. ExternalProject_Add ( swig PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 URL http://prdownloads.sourceforge.net/swig/swigwin-3.0.12.zip URL_MD5 a49524dad2c91ae1920974e7062bfc93 UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX= -P ${CMAKE_CURRENT_LIST_DIR}/install.cmake ) endif (WIN32) #Install from the package manager #sudo apt-get install swig #Invoke as /usr/bin/swig if (UNIX) ExternalProject_Add ( swig PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 DOWNLOAD_COMMAND "" UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND /usr/bin/swig -version INSTALL_COMMAND "" ) endif (UNIX)