diff options
author | gregory guy <[email protected]> | 2018-08-11 09:09:44 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-01 18:41:34 +0200 |
commit | 88073834d0052272dce61556b9508e66b84cd494 (patch) | |
tree | 8df27acc26daca7dc9e6f15e134932cbb08d324b /ConfigureChecks.cmake | |
parent | b2bfb5e920d347f2f272c21e2d24cda1c943a4d5 (diff) | |
download | tdeadmin-88073834d0052272dce61556b9508e66b84cd494.tar.gz tdeadmin-88073834d0052272dce61556b9508e66b84cd494.zip |
First bach of cmake files in order to convert tdeadmin
from autotools to cmake building system.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..426dc7a --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,43 @@ +################################################# +# +# (C) 2013 Alexander Golubev +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_GCC_VISIBILITY ) + if( NOT UNIX ) + tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" ) + endif( NOT UNIX ) + set( __KDE_HAVE_GCC_VISIBILITY 1 ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") +endif( WITH_GCC_VISIBILITY ) + + +tde_setup_architecture_flags( ) + + +##### kcron + +if( BUILD_KCRON ) + check_include_file( "sstream" HAVE_SSTREAM ) +endif( BUILD_KCRON ) + + +##### kuser + +if( BUILD_KUSER ) + check_include_file( "unistd.h" HAVE_UNISTD_H ) + check_include_file( "sys/stat.h" HAVE_SYS_STAT_H ) +endif( BUILD_KUSER ) + + + +# required stuff +find_package( TQt ) +find_package( TDE ) |