2010-10-02 18:23:33 +02:00
|
|
|
|
2011-10-26 16:45:20 +02:00
|
|
|
include_directories( ${QJSON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} )
|
2010-10-02 18:23:33 +02:00
|
|
|
|
|
|
|
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
|
2010-10-02 18:23:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set( LIBECHONEST_H
|
2011-10-26 16:45:20 +02:00
|
|
|
echonest_export.h
|
2010-10-02 18:23:33 +02:00
|
|
|
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
|
2010-10-02 18:23:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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} )
|
2010-10-02 18:23:33 +02:00
|
|
|
|
|
|
|
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)
|
2010-10-02 18:23:33 +02:00
|
|
|
endforeach(file ${LIBECHONEST_H})
|