|
|
@ -20,30 +20,20 @@ if( NOT TQT_FOUND )
|
|
|
|
tde_message_fatal( "Unable to find tqt!\n Try adding the directory in which the tqt.pc file is located\nto the PKG_CONFIG_PATH variable." )
|
|
|
|
tde_message_fatal( "Unable to find tqt!\n Try adding the directory in which the tqt.pc file is located\nto the PKG_CONFIG_PATH variable." )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
mark_as_advanced(
|
|
|
|
# tqmoc executable
|
|
|
|
UIC_EXECUTABLE
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# tqmoc_executable
|
|
|
|
|
|
|
|
pkg_get_variable( TQT_PREFIX tqt-mt prefix )
|
|
|
|
pkg_get_variable( TQT_PREFIX tqt-mt prefix )
|
|
|
|
find_program( TQMOC_EXECUTABLE NAMES tqmoc HINTS "${TQT_PREFIX}/bin" )
|
|
|
|
find_program( TQMOC_EXECUTABLE NAMES tqmoc HINTS "${TQT_PREFIX}/bin" )
|
|
|
|
if( NOT TQMOC_EXECUTABLE )
|
|
|
|
if( NOT TQMOC_EXECUTABLE )
|
|
|
|
tde_message_fatal( "tqmoc was NOT found.\n Please make sure TQt is correctly installed." )
|
|
|
|
tde_message_fatal( "tqmoc was not found.\n Please make sure TQt is correctly installed." )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
tqt_message( " tqmoc path: ${TQMOC_EXECUTABLE}" )
|
|
|
|
tqt_message( " tqmoc path: ${TQMOC_EXECUTABLE}" )
|
|
|
|
|
|
|
|
|
|
|
|
# uic_executable
|
|
|
|
# tquic executable
|
|
|
|
tde_execute_process(
|
|
|
|
find_program( TQUIC_EXECUTABLE NAMES tquic HINTS "${TQT_PREFIX}/bin" )
|
|
|
|
COMMAND pkg-config tqt --variable=uic_executable
|
|
|
|
if( NOT EXISTS ${TQUIC_EXECUTABLE} )
|
|
|
|
OUTPUT_VARIABLE UIC_EXECUTABLE
|
|
|
|
tde_message_fatal( "tquic was not found.\n Please make sure TQt is correctly installed." )
|
|
|
|
CACHE FILEPATH "TQt uic executable path"
|
|
|
|
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( NOT EXISTS ${UIC_EXECUTABLE} )
|
|
|
|
|
|
|
|
tde_message_fatal( "uic not found!\n tqt is correctly installed?" )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
tqt_message( " tquic path: ${TQUIC_EXECUTABLE}" )
|
|
|
|
tqt_message( " uic path: ${UIC_EXECUTABLE}" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# check if tqt is usable
|
|
|
|
# check if tqt is usable
|
|
|
|