FIND_PATH(
	SOQT_INCLUDE_DIRS
	NAMES
	Inventor/Qt/SoQt.h
	HINTS
	$ENV{COINDIR}/include
	$ENV{COIN3DDIR}/include
	$ENV{HOME}/include
	/usr/local/include
	/usr/include
	$ENV{SystemDrive}/Coin3D/include
	$ENV{ProgramFiles}/Coin3D/include
)

FIND_LIBRARY(
	SOQT_LIBRARY_DEBUG
	NAMES
	SoQtd soqt1d
	HINTS
	$ENV{COINDIR}/lib
	$ENV{COIN3DDIR}/lib
	$ENV{HOME}/lib
	/usr/local/lib
	/usr/lib
	$ENV{SystemDrive}/Coin3D/lib
	$ENV{ProgramFiles}/Coin3D/lib
)

FIND_LIBRARY(
	SOQT_LIBRARY_RELEASE
	NAMES
	SoQt soqt1
	HINTS
	$ENV{COINDIR}/lib
	$ENV{COIN3DDIR}/lib
	$ENV{HOME}/lib
	/usr/local/stow/SoQt-1.4.1/lib
	/usr/local/lib
	/usr/lib
	$ENV{SystemDrive}/Coin3D/lib
	$ENV{ProgramFiles}/Coin3D/lib
)

IF (SOQT_LIBRARY_DEBUG AND NOT SOQT_LIBRARY_RELEASE)
	SET(SOQT_LIBRARIES ${SOQT_LIBRARY_DEBUG})
ENDIF (SOQT_LIBRARY_DEBUG AND NOT SOQT_LIBRARY_RELEASE)

IF (SOQT_LIBRARY_RELEASE AND NOT SOQT_LIBRARY_DEBUG)
	SET(SOQT_LIBRARIES ${SOQT_LIBRARY_RELEASE})
ENDIF (SOQT_LIBRARY_RELEASE AND NOT SOQT_LIBRARY_DEBUG)

IF (SOQT_LIBRARY_DEBUG AND SOQT_LIBRARY_RELEASE)
	SET(SOQT_LIBRARIES debug ${SOQT_LIBRARY_DEBUG} optimized ${SOQT_LIBRARY_RELEASE})
ENDIF (SOQT_LIBRARY_DEBUG AND SOQT_LIBRARY_RELEASE)

FIND_PACKAGE_HANDLE_STANDARD_ARGS(
	SoQt
	DEFAULT_MSG
	SOQT_INCLUDE_DIRS
	SOQT_LIBRARIES
)

MARK_AS_ADVANCED(
	SOQT_INCLUDE_DIRS
	SOQT_LIBRARIES
	SOQT_LIBRARY_DEBUG
	SOQT_LIBRARY_RELEASE
) 
