summaryrefslogtreecommitdiffstats
path: root/src/bindings/CMakeLists.txt
blob: b1f242953681c953e2b3be78ce0a8ae6aa9482dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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})
		add_subdirectory(swig/java)
		add_subdirectory(swig/php)
	else()
		message(STATUS "SWIG version 2.0.5 is required, found ${SWIG_VERSION} - skipping java wrapper generation")
	endif()
else()
	message(STATUS "SWIG not found - skipping wrapper generation")
endif()
set(USCXML_LANGUAGE_BINDINGS ${USCXML_LANGUAGE_BINDINGS} PARENT_SCOPE)