summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-10 20:49:45 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-10 20:49:45 +0100
commite4ba6b8d5cd1c6c28a939c84b69849eda68fb255 (patch)
tree4de05893223b0c0687fbcd39d1d170f1d9e102f7
parent8aab9504050067dc8daa5015f64a2e9522c7f46f (diff)
downloadkcpuload-e4ba6b8d5cd1c6c28a939c84b69849eda68fb255.tar.gz
kcpuload-e4ba6b8d5cd1c6c28a939c84b69849eda68fb255.zip
Use common CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt1
-rw-r--r--ConfigureChecks.cmake32
2 files changed, 8 insertions, 25 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71976ee..c2fc422 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,7 @@ set( VERSION R14.1.0 )
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckLibraryExists )
+include( CheckSymbolExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 63944db..116924c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -9,37 +9,19 @@
# required stuff
-find_package( TQt )
-find_package( TDE )
-
tde_setup_architecture_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 )
- 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 )
-
-
-##### gettext
-
-if( BUILD_TRANSLATIONS )
- include( FindGettext )
- if( GETTEXT_FOUND )
- set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
- CACHE FILEPATH "path to msgfmt executable" )
- endif( GETTEXT_FOUND )
-
- if( NOT MSGFMT_EXECUTABLE )
- tde_message_fatal( "msgfmt is required but was not found on your system." )
- endif( NOT MSGFMT_EXECUTABLE )
-endif( BUILD_TRANSLATIONS )
+ tde_setup_gcc_visibility( )
+endif( )