file(GLOB_RECURSE SPOTIFY_SRC_H
        "*.h"
        )

file(GLOB_RECURSE SPOTIFY_SRC_CPP
        "*.cpp"
        )

set(SPOTIFY_SRC ${SPOTIFY_SRC_H} ${SPOTIFY_SRC_CPP})

add_library(spotify-api-plusplus SHARED ${SPOTIFY_SRC})
target_link_libraries(spotify-api-plusplus ${LIBS})

install(TARGETS spotify-api-plusplus DESTINATION bin)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ DESTINATION include/spotify-api-plusplus FILES_MATCHING PATTERN "*.h*")

file(GLOB_RECURSE SPOTIFY_SRC_H
        "*.h"
        )

file(GLOB_RECURSE SPOTIFY_SRC_CPP
        "*.cpp"
        )

set(SPOTIFY_SRC ${SPOTIFY_SRC_H} ${SPOTIFY_SRC_CPP})

add_library(spotify-api-plusplus SHARED ${SPOTIFY_SRC})
target_link_libraries(spotify-api-plusplus ${LIBS})

install(TARGETS spotify-api-plusplus DESTINATION lib)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/ DESTINATION include/spotify-api-plusplus FILES_MATCHING PATTERN "*.h*")

Install library to lib, not bin
Install library to lib, not bin
