55 lines
1.2 KiB
CMake
55 lines
1.2 KiB
CMake
|
include_directories(${SPOTIFY_INCLUDE_DIRS})
|
||
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../common)
|
||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
|
||
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||
|
|
||
|
link_directories(${SPOTIFY_LIBRARY_DIRS})
|
||
|
|
||
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||
|
|
||
|
set(SOURCES
|
||
|
main.cpp
|
||
|
spotifyclient.cpp
|
||
|
|
||
|
${CMAKE_SOURCE_DIR}/src/core/logging.cpp
|
||
|
)
|
||
|
|
||
|
set(HEADERS
|
||
|
spotifyclient.h
|
||
|
)
|
||
|
|
||
|
qt4_wrap_cpp(MOC ${HEADERS})
|
||
|
|
||
|
add_executable(clementine-spotifyblob
|
||
|
${SOURCES}
|
||
|
${MOC}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(clementine-spotifyblob
|
||
|
${SPOTIFY_LIBRARIES}
|
||
|
${QT_QTCORE_LIBRARY}
|
||
|
${QT_QTNETWORK_LIBRARY}
|
||
|
clementine-spotifyblob-messages
|
||
|
)
|
||
|
|
||
|
install(TARGETS clementine-spotifyblob
|
||
|
RUNTIME DESTINATION bin
|
||
|
)
|
||
|
|
||
|
if(LINUX)
|
||
|
# Versioned name of the blob
|
||
|
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||
|
set(SPOTIFY_BLOB_ARCH 32)
|
||
|
else(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||
|
set(SPOTIFY_BLOB_ARCH 64)
|
||
|
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||
|
|
||
|
install(
|
||
|
FILES ${CMAKE_BINARY_DIR}/clementine-spotifyblob
|
||
|
DESTINATION ${CMAKE_BINARY_DIR}/spotify/version${SPOTIFY_BLOB_VERSION}-${SPOTIFY_BLOB_ARCH}bit/blob
|
||
|
RENAME ${SPOTIFY_BLOB_NAME}
|
||
|
)
|
||
|
endif(LINUX)
|