PROJECT(BALLPython)

IF(BALL_PYTHON_SUPPORT)
	INCLUDE(SIPMacros)

	INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})

	IF(NOT BALL_HAS_ASIO)
		SET(SIP_DISABLE_FEATURES "BALL_HAS_ASIO")
	ENDIF()
	SET(SIP_EXTRA_OPTIONS "-e")

	# Add the BALLCore python bindings
	SET(SIP_EXTRA_SOURCES 
		BALL/pyBALLSipHelper.C
		BALL/pyIndexList.C
		BALL/pyConstant.C
	)
	ADD_SIP_PYTHON_MODULE(BALLCore BALL/BALLCore.sip BALL)
	
	SET(SIP_EXTRA_SOURCES
		VIEW/pyCompositeList.C
		VIEW/pyBALLSipHelper.C
		VIEW/pyColorRGBAVector.C
		VIEW/pyDatasetVector.C
	)
	# Add the VIEW python bindings
	SET(SIP_INCLUDES ${PROJECT_SOURCE_DIR})
	ADD_SIP_PYTHON_MODULE(VIEW VIEW/VIEW.sip BALL VIEW)
ENDIF()

PROJECT(BALLPython)

IF(BALL_PYTHON_SUPPORT)
	INCLUDE(SIPMacros)

	REMOVE_DEFINITIONS(-pedantic)

	INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})

	IF(NOT BALL_HAS_ASIO)
		SET(SIP_DISABLE_FEATURES "BALL_HAS_ASIO")
	ENDIF()
	SET(SIP_EXTRA_OPTIONS "-e")

	# Add the BALLCore python bindings
	SET(SIP_EXTRA_SOURCES 
		BALL/pyBALLSipHelper.C
		BALL/pyIndexList.C
		BALL/pyConstant.C
	)
	ADD_SIP_PYTHON_MODULE(BALLCore BALL/BALLCore.sip BALL)
	
	SET(SIP_EXTRA_SOURCES
		VIEW/pyCompositeList.C
		VIEW/pyBALLSipHelper.C
		VIEW/pyColorRGBAVector.C
		VIEW/pyDatasetVector.C
	)
	# Add the VIEW python bindings
	SET(SIP_INCLUDES ${PROJECT_SOURCE_DIR})
	ADD_SIP_PYTHON_MODULE(VIEW VIEW/VIEW.sip BALL VIEW)
ENDIF()

Remove pedantic flag from python extensions.
Remove pedantic flag from python extensions.
