summaryrefslogtreecommitdiffstats
path: root/kscd/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/ConfigureChecks.cmake')
-rw-r--r--kscd/ConfigureChecks.cmake55
1 files changed, 55 insertions, 0 deletions
diff --git a/kscd/ConfigureChecks.cmake b/kscd/ConfigureChecks.cmake
new file mode 100644
index 00000000..8047bed7
--- /dev/null
+++ b/kscd/ConfigureChecks.cmake
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( "${CMAKE_SYSTEM_NAME}" MATCHES "IRIX" )
+ # IRIX cdaudio
+ if( NOT CDAUDIO )
+ message( STATUS "Checking for cdaudio library" )
+ find_library( CDAUDIO cdaudio )
+ if( CDAUDIO )
+ message( STATUS "Checking for cdaudio library - found" )
+ set( CDAUDIO_LIBRARIES "cdaudio;mediad;ds" )
+ else( )
+ message( STATUS "Checking for cdaudio library - not found" )
+ endif( )
+ endif( NOT CDAUDIO )
+
+ # Irix CDDA
+ if( NOT FPE )
+ message( STATUS "Checking for fpe library" )
+ find_library( FPE fpe )
+ if( FPE )
+ message( STATUS "Checking for fpe library - found" )
+ set( FPE_LIBRARIES "fpe" )
+ else( )
+ message( STATUS "Checking for fpe library - not found" )
+ endif( )
+ endif( NOT FPE )
+endif( "${CMAKE_SYSTEM_NAME}" MATCHES "IRIX" )
+
+# FreeBSD
+if( "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD" )
+ if( NOT CDROM )
+ message( STATUS "Checking for cdrom library" )
+ find_library( CDROM cdrom )
+ if( CDROM )
+ message( STATUS "Checking for cdrom library - found" )
+ set( CDROM_LIBRARIES "cdrom" )
+ else( )
+ message( STATUS "Checking for cdrom library - not found" )
+ endif( CDROM )
+ endif( NOT CDROM )
+endif( "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD" )
+
+# aRts
+if( ARTS_FOUND )
+ set( USE_ARTS 1 CACHE INTERNAL "" FORCE )
+endif( ARTS_FOUND )