mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-07 06:35:15 +01:00
61 lines
1.0 KiB
CMake
61 lines
1.0 KiB
CMake
include_directories(${SPOTIFY_INCLUDE_DIRS})
|
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
|
|
link_directories(${SPOTIFY_LIBRARY_DIRS})
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ..)
|
|
|
|
|
|
set(COMMON_SOURCES
|
|
spotifymessagehandler.cpp
|
|
)
|
|
|
|
set(COMMON_HEADERS
|
|
spotifymessagehandler.h
|
|
)
|
|
|
|
set(COMMON_MESSAGES
|
|
spotifymessages.proto
|
|
)
|
|
|
|
qt4_wrap_cpp(COMMON_MOC ${COMMON_HEADERS})
|
|
protobuf_generate_cpp(PROTO_SOURCES PROTO_HEADERS ${COMMON_MESSAGES})
|
|
|
|
add_library(clementine-spotifyblob-messages STATIC
|
|
${COMMON_SOURCES}
|
|
${COMMON_MOC}
|
|
${PROTO_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(clementine-spotifyblob-messages
|
|
${PROTOBUF_LIBRARY}
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
)
|
|
|
|
|
|
set(SOURCES
|
|
main.cpp
|
|
spotifyclient.cpp
|
|
|
|
../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_LIBRARIES}
|
|
clementine-spotifyblob-messages
|
|
)
|