|
|
@ -37,19 +37,11 @@ option( WITH_MAD "Enable MAD mp3 decoder support" ON )
|
|
|
|
|
|
|
|
|
|
|
|
##### paths setup ###############################
|
|
|
|
##### paths setup ###############################
|
|
|
|
|
|
|
|
|
|
|
|
macro( _tde_internal_setup_path _path _default )
|
|
|
|
tde_setup_install_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" )
|
|
|
|
if( DEFINED ${_path} )
|
|
|
|
tde_setup_install_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" )
|
|
|
|
set( ${_path} "${${_path}}" CACHE INTERNAL "" FORCE )
|
|
|
|
tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
|
|
|
|
else( )
|
|
|
|
tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}" )
|
|
|
|
set( ${_path} "${_default}" )
|
|
|
|
tde_setup_install_path( PKGCONFIG_INSTALL_DIR "/usr/lib${LIB_SUFFIX}/pkgconfig" )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
endmacro( _tde_internal_setup_path )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_tde_internal_setup_path( EXEC_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" )
|
|
|
|
|
|
|
|
_tde_internal_setup_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" )
|
|
|
|
|
|
|
|
_tde_internal_setup_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
|
|
|
|
|
|
|
|
_tde_internal_setup_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}" )
|
|
|
|
|
|
|
|
_tde_internal_setup_path( PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### check for include files ###################
|
|
|
|
##### check for include files ###################
|
|
|
@ -167,11 +159,10 @@ else( GLIB2_FOUND )
|
|
|
|
endif( GLIB2_FOUND )
|
|
|
|
endif( GLIB2_FOUND )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### check for Qt3 and TQt #####################
|
|
|
|
##### check for TQt #############################
|
|
|
|
|
|
|
|
|
|
|
|
include( CheckCXXSourceCompiles )
|
|
|
|
include( CheckCXXSourceCompiles )
|
|
|
|
|
|
|
|
|
|
|
|
find_package( Qt )
|
|
|
|
|
|
|
|
find_package( TQt )
|
|
|
|
find_package( TQt )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|