# Locate dtInspectorQt
# Note: This find does not include finding Qt, which dtInspectorQt is dependant on.
#

INCLUDE(delta3d_common)
  
#variable names of the individual Delta3D libraries.  Can be used in application cmakelist.txt files.
FIND_DELTA3D_LIBRARY(DTINSPECTORQT_LIBRARY         dtInspectorQt)
FIND_DELTA3D_LIBRARY(DTINSPECTORQT_DEBUG_LIBRARY   dtInspectorQtD)



IF (NOT DTINSPECTORQT_DEBUG_LIBRARY)
  SET(DTINSPECTORQT_DEBUG_LIBRARY ${DTINSPECTORQT_LIBRARY})
  if (CMAKE_DEBUG_SUFFIX)
      MESSAGE(STATUS "No debug library was found for DTINSPECTORQT_DEBUG_LIBRARY")
  endif()
ENDIF()

#convienent list of libraries to link with when using dtInspectorQt
SET(DTINSPECTORQT_LIBRARIES
    optimized ${DTINSPECTORQT_LIBRARY}   debug ${DTINSPECTORQT_DEBUG_LIBRARY}
    )
    
SET(DTINSPECTORQT_INCLUDE_DIRECTORIES ${DELTA3D_INCLUDE_DIR}
    )


# handle the QUIETLY and REQUIRED arguments and set DELTA3D_FOUND to TRUE if 
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(dtInspectorQt DEFAULT_MSG DELTA3D_INCLUDE_DIR DTINSPECTORQT_LIBRARY DTINSPECTORQT_DEBUG_LIBRARY
                                  )
