summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2020-01-14 13:48:58 +0100
committerMichele Calgaro <[email protected]>2020-01-26 00:51:05 +0900
commitdd79cfcd646b638b99ef1e6e3c833c4976fc95e0 (patch)
tree1edc1fdec78ea78edd83ba46540cbbfd04159256 /ConfigureChecks.cmake
parente010bf5ccc2b72ca8d59e4481ff6e40579f5adf5 (diff)
downloadksensors-dd79cfcd646b638b99ef1e6e3c833c4976fc95e0.tar.gz
ksensors-dd79cfcd646b638b99ef1e6e3c833c4976fc95e0.zip
Drop automake build support.
Add basic cmake build instructions. Delete LEEME, LIESMICH and LISEZMOI files. Delete empty file NEWS. Rework of the FAQ, INSTALL and README files. Add detection for the lm-sensors and math libc libraries. Move the ksensors.desktop file into XDG_APPS_INSTALL_DIR directory, see TDE/tde#26 and bug 2408. Add French description and comments in the ksensors.desktop file. Some cosmetics here and there. Signed-off-by: gregory guy <[email protected]> (cherry picked from commit e383a9d6aecec8ed53d1a0f3ce804f1ce550476f)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 289dd8c..cd05fca 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -24,3 +24,25 @@ tde_setup_largefiles( )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
+
+
+##### check for lm-sensors
+
+find_path( SENSORS_INCLUDE_DIRS "sensors/sensors.h" )
+if( SENSORS_INCLUDE_DIRS )
+ set( SENSORS_INCLUDE_DIRS "${SENSORS_INCLUDE_DIRS}" )
+ find_library( SENSORS_LIBRARIES sensors )
+ if( SENSORS_LIBRARIES )
+ set( SENSORS_LIBRARIES "${SENSORS_LIBRARIES}" )
+ endif()
+ else()
+ tde_message_fatal( "lm-sensors library is required but was not found on your system" )
+endif()
+
+
+##### check for the math libc
+
+find_library( MATH_LIBC m )
+if( MATH_LIBC )
+ set( MATH_LIBC "${MATH_LIBC}" )
+endif()