project(Win32DeviceNotifier)
cmake_minimum_required(VERSION 2.6)

include_directories( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} )
include_directories ("${PROJECT_SOURCE_DIR}/../../Libs/SiliconLib")
include_directories ("${PROJECT_SOURCE_DIR}/../../Libs/SiDi")

SET( WIN32DEVICENOTIFIER_CPP ${WIN32DEVICENOTIFIER_CPP}
./cdrecordhw.cpp
./win32devicenotifier.cpp
./body.cpp
./plugin.cpp
)

SET( WIN32DEVICENOTIFIER_MOC ${WIN32DEVICENOTIFIER_MOC}
./win32devicenotifier.h
./cdrecordhw.h
)

SET( WIN32DEVICENOTIFIER_RESOURCES ${WIN32DEVICENOTIFIER_RESOURCES}
./win32devicenotifier.qrc
)

SET( WIN32DEVICENOTIFIER_UIS ${WIN32DEVICENOTIFIER_UIS}

)


QT4_WRAP_CPP( WIN32DEVICENOTIFIER_MOC_HEADERS ${WIN32DEVICENOTIFIER_MOC}  )
QT4_ADD_RESOURCES( WIN32DEVICENOTIFIER_RESOURCES_HEADERS ${WIN32DEVICENOTIFIER_RESOURCES} )
QT4_WRAP_UI( WIN32DEVICENOTIFIER_UI_HEADERS ${WIN32DEVICENOTIFIER_UIS} )

add_library( Win32DeviceNotifier SHARED ${WIN32DEVICENOTIFIER_CPP} ${WIN32DEVICENOTIFIER_UI_HEADERS} ${WIN32DEVICENOTIFIER_RESOURCES_HEADERS} ${WIN32DEVICENOTIFIER_MOC_HEADERS} )
target_link_libraries( Win32DeviceNotifier ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} SiliconLib SiDi  )

install(TARGETS Win32DeviceNotifier  DESTINATION ${PLUGIN_INSTALL_PATH} )

