Add 2009 to copyright and fix its format
[skype-call-recorder.git] / CMakeModules / Findid3.cmake
blobcbc75a4ff04486304cf050395f267c1fc35f6f2d
2 FIND_PATH(ID3_INCLUDE_DIR id3/tag.h /usr/include /usr/local/include)
3 FIND_LIBRARY(ID3_LIBRARY NAMES id3 PATH /usr/lib /usr/local/lib)
5 IF (ID3_INCLUDE_DIR AND ID3_LIBRARY)
6         SET(ID3_FOUND TRUE)
7 ENDIF (ID3_INCLUDE_DIR AND ID3_LIBRARY)
9 IF (ID3_FOUND)
10         IF (NOT id3_FIND_QUIETLY)
11                 MESSAGE(STATUS "Found id3: ${ID3_INCLUDE_DIR}/id3/tag.h ${ID3_LIBRARY}")
12         ENDIF (NOT id3_FIND_QUIETLY)
13 ELSE (ID3_FOUND)
14         IF (id3_FIND_REQUIRED)
15                 MESSAGE(FATAL_ERROR "Could not find id3")
16         ENDIF (id3_FIND_REQUIRED)
17 ENDIF (ID3_FOUND)