/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

  1. cmake_minimum_required(VERSION 2.6)
  2. set( CMAKE_MODULE_PATH
  3. ${CMAKE_MODULE_PATH}
  4. ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
  5. )
  6. if(${CMAKE_BUILD_TYPE} MATCHES "Release")
  7. add_definitions(-DNDEBUG)
  8. endif(${CMAKE_BUILD_TYPE} MATCHES "Release")
  9. # Set up definitions and paths
  10. add_definitions(${QT_DEFINITIONS})
  11. include(${QT_USE_FILE})
  12. # Main Library
  13. add_subdirectory(src)
  14. # Optionally build the fingerprint library
  15. option(BUILD_FINGERPRINT "Build the lastfm-fingerprint library" OFF)
  16. find_package(LibSamplerate)
  17. find_package(LibFFTW3)
  18. if (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)
  19. add_subdirectory(src/fingerprint)
  20. endif (BUILD_FINGERPRINT AND LIBFFTW3_FOUND AND LIBSAMPLERATE_FOUND)