# - Config file for the SofaGui package
# It defines the following variables
#  SofaGui_INCLUDE_DIRS - include directories for SofaGui
#  SofaGui_LIBRARIES    - libraries to link against

@PACKAGE_INIT@

set(SOFAGUI_INCLUDE_DIR "@PACKAGE_SOFAGUI_INCLUDE_DIR@")
set(SofaGUI_TARGETS @SOFAGUI_TARGETS@)

# required for transitive dependencies
find_package(SofaGeneral REQUIRED)
find_package(SofaMisc REQUIRED)
find_package(SofaAdvanced REQUIRED)

set(SOFA_HAVE_QT @SOFA_HAVE_QT@)

if(SOFA_HAVE_QT)
    set(QT_USE_IMPORTED_TARGETS TRUE)
    set(QT4_NO_LINK_QTMAIN TRUE)
    find_package(Qt4 COMPONENTS qtcore qtgui qtopengl qt3support qtxml REQUIRED)
endif()

if( NOT TARGET SofaGuiCommon )
	include("${CMAKE_CURRENT_LIST_DIR}/SofaGuiTargets.cmake")
endif()

check_required_components(${SofaGUI_TARGETS})

# For compatibility only
set(SofaGui_LIBRARIES SofaGuiCommon)
set(SofaGui_INCLUDE_DIRS ${SOFAGUI_INCLUDE_DIR} ${SofaGeneral_INCLUDE_DIRS} ${SofaMisc_INCLUDE_DIRS} ${SofaAdvanced_INCLUDE_DIRS})

# - Config file for the SofaGui package
# It defines the following variables
#  SofaGui_INCLUDE_DIRS - include directories for SofaGui
#  SofaGui_LIBRARIES    - libraries to link against

@PACKAGE_INIT@

set(SOFAGUI_INCLUDE_DIR "@PACKAGE_SOFAGUI_INCLUDE_DIR@")
set(SofaGUI_TARGETS @SOFAGUI_TARGETS@)

# required for transitive dependencies
find_package(SofaGeneral REQUIRED)
find_package(SofaMisc REQUIRED)
find_package(SofaAdvanced REQUIRED)

set(SOFA_HAVE_QT @SOFA_HAVE_QT@)

if(SOFA_HAVE_QT)
    set(QT_USE_IMPORTED_TARGETS 1)
    set(QT4_NO_LINK_QTMAIN      1)
    find_package(Qt4 COMPONENTS qtcore qtgui qtopengl qt3support qtxml REQUIRED)
endif()

if( NOT TARGET SofaGuiCommon )
	include("${CMAKE_CURRENT_LIST_DIR}/SofaGuiTargets.cmake")
endif()

check_required_components(${SofaGUI_TARGETS})

# For compatibility only
set(SofaGui_LIBRARIES SofaGuiCommon)
set(SofaGui_INCLUDE_DIRS ${SOFAGUI_INCLUDE_DIR} ${SofaGeneral_INCLUDE_DIRS} ${SofaMisc_INCLUDE_DIRS} ${SofaAdvanced_INCLUDE_DIRS})

BUILD FIX: SofaGuiConfig variable usage before looking up for qt4
BUILD FIX: SofaGuiConfig variable usage before looking up for qt4


Former-commit-id: 6fc9e7cf44aa86aea29f37ea40545b95daf1110f