Add TQT_CMAKE_DIR variable.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/80/head
Slávek Banko 3 years ago
parent 857971e810
commit d863e15b50
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -99,6 +99,13 @@ if( NOT TQT_FOUND )
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
# TQT_CMAKE_DIR
if( NOT DEFINED TQT_CMAKE_DIR )
set( TQT_CMAKE_DIR "${TQT_LIBDIR}/cmake"
CACHE FILEPATH "Path for shared TQt CMake targets" )
endif()
# TQT_CXX_FLAGS
foreach( _flag ${TQT_CFLAGS} ${TQT_CFLAGS_OTHER} )
set( TQT_CXX_FLAGS "${TQT_CXX_FLAGS} ${_flag}" )

@ -773,10 +773,12 @@ macro( tde_import _library )
else()
if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
message( STATUS " ok, found import file" )
elseif( EXISTS "${TQT_CMAKE_DIR}/${_library}.cmake" )
include( "${TQT_CMAKE_DIR}/${_library}.cmake" )
else()
tde_message_fatal( "'${_library}' are required,\n but is not installed nor selected for build" )
tde_message_fatal( "'${_library}' is required, but is not installed nor selected for build" )
endif()
message( STATUS " ok, found import file" )
endif()
endmacro()

Loading…
Cancel
Save