- if(PHONON_FOUND)
- if(NOT PHONON_FIND_QUIETLY)
- message(STATUS "Found Phonon: ${PHONON_LIBRARY}")
- message(STATUS "Found Phonon Includes: ${PHONON_INCLUDES}")
- endif(NOT PHONON_FIND_QUIETLY)
- else(PHONON_FOUND)
- if(Phonon_FIND_REQUIRED)
- if(NOT PHONON_INCLUDE_DIR)
- message(STATUS "Phonon includes NOT found!")
- endif(NOT PHONON_INCLUDE_DIR)
- if(NOT PHONON_LIBRARY)
- message(STATUS "Phonon library NOT found!")
- endif(NOT PHONON_LIBRARY)
- message(FATAL_ERROR "Phonon library or includes NOT found!")
- else(Phonon_FIND_REQUIRED)
- message(STATUS "Unable to find Phonon")
- endif(Phonon_FIND_REQUIRED)
- endif(PHONON_FOUND)
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(Phonon DEFAULT_MSG PHONON_INCLUDE_DIR PHONON_LIBRARY)