summaryrefslogtreecommitdiffstats
path: root/kscd/ConfigureChecks.cmake
blob: 8047bed7033e73a68f7d1ba380e4c1a9eb155438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 )