Clementine-audio-player-Mac.../3rdparty/libechonest/CMakeLists.txt

63 lines
1.5 KiB
CMake
Raw Normal View History

2011-10-26 16:45:20 +02:00
include_directories( ${QJSON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} )
set( LIBECHONEST_SRC
Track.cpp
Song.cpp
Artist.cpp
Playlist.cpp
Config.cpp
Parsing.cpp
AudioSummary.cpp
Util.cpp
ArtistTypes.cpp
2011-10-26 16:45:20 +02:00
Generator.cpp
Catalog.cpp
CatalogUpdateEntry.cpp
CatalogSong.cpp
CatalogArtist.cpp
CatalogItem.cpp
TypeInformation.cpp
)
set( LIBECHONEST_H
2011-10-26 16:45:20 +02:00
echonest_export.h
Track.h
Song.h
Artist.h
Playlist.h
Config.h
AudioSummary.h
ArtistTypes.h
2011-10-26 16:45:20 +02:00
Util.h
Catalog.h
CatalogUpdateEntry.h
CatalogSong.h
CatalogArtist.h
CatalogItem.h
TypeInformation.h
)
QT4_WRAP_CPP( ${LIBECHONEST_H} )
2011-10-26 16:45:20 +02:00
if (CMAKE_COMPILER_IS_GNUCXX)
add_definitions( -Werror )
endif (CMAKE_COMPILER_IS_GNUCXX)
SET( OS_SPECIFIC_LINK_LIBRARIES "" )
IF( APPLE OR MINGW )
SET( OS_SPECIFIC_LINK_LIBRARIES ${QJSON_LIBRARIES} )
ELSE( APPLE OR MINGW )
SET( OS_SPECIFIC_LINK_LIBRARIES ${QJSON_LDFLAGS} )
ENDIF( APPLE OR MINGW )
2011-10-26 18:12:12 +02:00
add_library( echonest ${LIBECHONEST_SRC} )
2011-10-26 16:45:20 +02:00
target_link_libraries( echonest ${OS_SPECIFIC_LINK_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} )
foreach(file ${LIBECHONEST_H} echonest_export.h Util.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${file}
2011-10-26 16:45:20 +02:00
${CMAKE_CURRENT_BINARY_DIR}/echonest/${file}
COPYONLY)
endforeach(file ${LIBECHONEST_H})