PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 0ms RepoModel.GetById 40ms app.codeStats 0ms

/thirdparty/liblastfm2/CMakeLists.txt

http://github.com/tomahawk-player/tomahawk
CMake | 27 lines | 17 code | 7 blank | 3 comment | 2 complexity | 0f910b5f63d5c7facdadf638c096afaf MD5 | raw file
 1cmake_minimum_required(VERSION 2.6)
 2
 3set( CMAKE_MODULE_PATH
 4  ${CMAKE_MODULE_PATH}
 5  ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
 6  )
 7
 8if(${CMAKE_BUILD_TYPE} MATCHES "Release")
 9  add_definitions(-DNDEBUG)
10endif(${CMAKE_BUILD_TYPE} MATCHES "Release")
11
12# Set up definitions and paths
13add_definitions(${QT_DEFINITIONS})
14include(${QT_USE_FILE})
15
16# Main Library
17add_subdirectory(src)
18
19# Optionally build the fingerprint library
20option(BUILD_FINGERPRINT "Build the lastfm-fingerprint library" OFF)
21find_package(LibSamplerate)
22find_package(LibFFTW3)
23
24if (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)
25  add_subdirectory(src/fingerprint)
26endif (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)
27