diff options
Diffstat (limited to 'src/bindings/CMakeLists.txt')
-rw-r--r-- | src/bindings/CMakeLists.txt | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/bindings/CMakeLists.txt b/src/bindings/CMakeLists.txt deleted file mode 100644 index 89905ce..0000000 --- a/src/bindings/CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -# if you build swig from sources on windows, this is where it will end up -# see also: http://www.swig.org/Doc2.0/Windows.html#Windows_mingw_msys -if (CMAKE_CROSSCOMPILING) - return() -endif() - -if (WIN32) - if(EXISTS "${PROJECT_BINARY_DIR}/../swig/") - LIST(APPEND CMAKE_PROGRAM_PATH "${PROJECT_BINARY_DIR}/../swig/") - elseif(EXISTS "${PROJECT_BINARY_DIR}/../../swig/") - LIST(APPEND CMAKE_PROGRAM_PATH "${PROJECT_BINARY_DIR}/../../swig/") - endif() - - file(GLOB POTENTIAL_SWIG "C:/Program Files/swig*" "C:/Program Files (x86)/swig*") - LIST(APPEND CMAKE_PROGRAM_PATH ${POTENTIAL_SWIG}) # swig.exe - # message(FATAL_ERROR "POTENTIAL_SWIG: ${POTENTIAL_SWIG}") - -endif() -LIST(APPEND CMAKE_PROGRAM_PATH $ENV{SWIG_DIR}) - -find_package(SWIG) - -if (SWIG_FOUND) - if(SWIG_VERSION VERSION_GREATER 2.0.4) - MARK_AS_ADVANCED(SWIG_DIR SWIG_EXECUTABLE SWIG_VERSION) - INCLUDE(${SWIG_USE_FILE}) - if (BUILD_BINDING_JAVA) - add_subdirectory(swig/java) - endif() - if (BUILD_BINDING_CSHARP) - add_subdirectory(swig/csharp) - endif() - if (BUILD_BINDING_PHP) - add_subdirectory(swig/php) - endif() - - if(SWIG_VERSION VERSION_LESS 3.0.0) - message(STATUS "SWIG version > 3.0 is recommended, found ${SWIG_VERSION}") - endif() - else() - message(STATUS "SWIG version 2.0.5 is required, found ${SWIG_VERSION} - skipping wrapper generation") - endif() -else() - message(STATUS "SWIG not found - skipping wrapper generation") -endif() -set(USCXML_LANGUAGE_BINDINGS ${USCXML_LANGUAGE_BINDINGS} PARENT_SCOPE) |