@ -65,32 +65,20 @@ if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12)
message ( AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindQt5EventDispatcherSupport.cmake" )
endif ( )
# T r y i n g t o f i n d i n t h e d e f a u l t p a t h s
# U s e p k g - c o n f i g t o g e t t h e d i r e c t o r i e s a n d t h e n u s e t h e s e v a l u e s
# i n t h e FIND_PATH ( ) a n d FIND_LIBRARY ( ) c a l l s
find_package ( PkgConfig )
pkg_check_modules ( PKG_Qt5EventDispatcherSupport QUIET Qt5Gui )
set ( Qt5EventDispatcherSupport_DEFINITIONS ${ PKG_Qt5EventDispatcherSupport_CFLAGS_OTHER } )
set ( Qt5EventDispatcherSupport_VERSION ${ PKG_Qt5EventDispatcherSupport_VERSION } )
find_path ( Qt5EventDispatcherSupport_INCLUDE_DIR
N A M E S
Q t E v e n t D i s p a t c h e r S u p p o r t / p r i v a t e / q u n i x e v e n t d i s p a t c h e r _ q p a _ p . h
P A T H _ S U F F I X E S
Q t E v e n t D i s p a t c h e r S u p p o r t / $ { Q t 5 C o r e _ V E R S I O N } /
HI N T S
${ P K G _ Q t 5 E v e n t D i s p a t c h e r S u p p o r t _ I N C L U D E D I R } / Qt E v e n t D i s p a t c h e r S u p p o r t / $ { PK G _ Q t 5 E v e n t D i s p a t c h e r S u p p o r t _ V E R S I O N } /
)
if ( Qt5EventDispatcherSupport_INCLUDE_DIR )
set ( Qt5EventDispatcherSupport_VERSION ${ Qt5Core_VERSION } )
else ( )
# U s e p k g - c o n f i g t o g e t t h e d i r e c t o r i e s a n d t h e n u s e t h e s e v a l u e s
# i n t h e FIND_PATH ( ) a n d FIND_LIBRARY ( ) c a l l s
find_package ( PkgConfig )
pkg_check_modules ( PKG_Qt5EventDispatcherSupport QUIET Qt5Gui )
set ( Qt5EventDispatcherSupport_DEFINITIONS ${ PKG_Qt5EventDispatcherSupport_CFLAGS_OTHER } )
set ( Qt5EventDispatcherSupport_VERSION ${ PKG_Qt5EventDispatcherSupport_VERSION } )
find_path ( Qt5EventDispatcherSupport_INCLUDE_DIR
N A M E S
Q t E v e n t D i s p a t c h e r S u p p o r t / p r i v a t e / q u n i x e v e n t d i s p a t c h e r _ q p a _ p . h
H I N T S
$ { P K G _ Q t 5 E v e n t D i s p a t c h e r S u p p o r t _ I N C L U D E D I R } / Q t E v e n t D i s p a t c h e r S u p p o r t / $ { P K G _ Q t 5 E v e n t D i s p a t c h e r S u p p o r t _ V E R S I O N } /
)
endif ( )
find_library ( Qt5EventDispatcherSupport_LIBRARY
N A M E S
Q t 5 E v e n t D i s p a t c h e r S u p p o r t