/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
- cmake_minimum_required(VERSION 2.6)
- set( CMAKE_MODULE_PATH
- ${CMAKE_MODULE_PATH}
- ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
- )
- if(${CMAKE_BUILD_TYPE} MATCHES "Release")
- add_definitions(-DNDEBUG)
- endif(${CMAKE_BUILD_TYPE} MATCHES "Release")
- # Set up definitions and paths
- add_definitions(${QT_DEFINITIONS})
- include(${QT_USE_FILE})
- # Main Library
- add_subdirectory(src)
- # Optionally build the fingerprint library
- option(BUILD_FINGERPRINT "Build the lastfm-fingerprint library" OFF)
- find_package(LibSamplerate)
- find_package(LibFFTW3)
- if (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)
- add_subdirectory(src/fingerprint)
- endif (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)