You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.6 KiB
CMake
62 lines
1.6 KiB
CMake
###########################################
|
|
# #
|
|
# Improvements and feedback are welcome #
|
|
# #
|
|
# This file is released under GPL >= 3 #
|
|
# #
|
|
###########################################
|
|
|
|
|
|
# required stuff
|
|
|
|
tde_setup_compiler_flags( )
|
|
|
|
include(TestBigEndian)
|
|
test_big_endian(WORDS_BIGENDIAN)
|
|
|
|
tde_setup_largefiles( )
|
|
|
|
find_package( TQt )
|
|
find_package( TDE )
|
|
|
|
|
|
##### check for gcc visibility support #########
|
|
|
|
if( WITH_GCC_VISIBILITY )
|
|
tde_setup_gcc_visibility( )
|
|
endif( )
|
|
|
|
|
|
#### check for headers
|
|
|
|
check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
|
|
check_include_file( "paths.h" HAVE_PATHS_H )
|
|
|
|
|
|
#### set USE_SSL
|
|
|
|
if( WITH_SSL )
|
|
# For SSL support is used KSSL in tdelibs.
|
|
# Therefore, there is no need for a direct dependence on the SSL library.
|
|
set( USE_SSL 1 )
|
|
endif( WITH_SSL )
|
|
|
|
|
|
#### check for ASUS Mail LED
|
|
|
|
if( WITH_MLED )
|
|
set( HAVE_MLED 1 )
|
|
if( NOT EXISTS "/proc/acpi/asus/mled" )
|
|
message( WARNING
|
|
"\n"
|
|
"-DWITH_MLED=ON requires 'asus-laptop' kernel module from acpi4asus "
|
|
"project to work, which was not found on your system. The project is "
|
|
"currently abandoned and the module doesn't support linux kernels above "
|
|
"2.6.19. There is no harm in enabling the flag besides an additional "
|
|
"message on stderr, but you won't get any benefits from it either unless "
|
|
"you run some very unusual system configuration."
|
|
"\n"
|
|
)
|
|
endif( )
|
|
endif( WITH_MLED )
|