include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
)

# We add our source code here
set(wizard_SRCS
	main.cpp
	wizarddialog.cpp
	wizardpage.cpp
	wizardagent.cpp
	createremotedevice.cpp
	createpaireddevice.cpp
	../kbluetoothutils.cpp
)

qt4_add_dbus_interface(wizard_SRCS
    org.bluez.Audio.xml
    audio_interface)

kde4_add_executable(kbluetooth-wizard ${wizard_SRCS})

target_link_libraries(kbluetooth-wizard
                      ${KDE4_KIO_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_SOLID_LIBS} ${KDE4WORKSPACE_SOLIDCONTROL_LIBRARY})

install(TARGETS kbluetooth-wizard ${INSTALL_TARGETS_DEFAULT_ARGS})

install(FILES pin-code-database.xml DESTINATION ${DATA_INSTALL_DIR}/kbluetooth-wizard)
