include_directories( ../..
    ../../collections
    ../mediadevicecollection
    ../mediadevicecollection/support
    ../mediadevicecollection/handler
    ../mediadevicecollection/podcast
    ${CMAKE_BINARY_DIR}/src
    ${AMAROK_COLLECTION_SUPPORT_DIR}
    
    
)


########### next target ###############

set(amarok_collection-audiocdcollection_PART_SRCS
    AudioCdCollection.cpp
    AudioCdMeta.cpp
    AudioCdCollectionLocation.cpp
    FormatSelectionDialog.cpp
    handler/AudioCdHandler.cpp
    support/AudioCdDeviceInfo.cpp
    support/AudioCdConnectionAssistant.cpp
)

ki18n_wrap_ui(amarok_collection-audiocdcollection_PART_SRCS FormatSelectionDialog.ui)

add_library(amarok_collection-audiocdcollection MODULE ${amarok_collection-audiocdcollection_PART_SRCS})

target_link_libraries(
    amarok_collection-audiocdcollection
    amarokcore
    amaroklib
    KF5::ThreadWeaver
    KF5::KIOCore
)

if(APPLE)
    set_target_properties(amarok_collection-audiocdcollection PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()

install(TARGETS amarok_collection-audiocdcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} )

kcoreaddons_desktop_to_json(amarok_collection-audiocdcollection amarok_collection-audiocdcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop)
