project(TagargPlayer)
cmake_minimum_required(VERSION 2.6)

include_directories( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} )
include_directories ("${PROJECT_SOURCE_DIR}/../../Libs/SDataBase")
include_directories ("${PROJECT_SOURCE_DIR}/../../Libs/SiliconLib")
include_directories ("/usr/include/taglib")

SET( TAGARGPLAYER_CPP ${TAGARGPLAYER_CPP}
./mainwindow.cpp
./playlist.cpp
./body.cpp
./tagarg.cpp
./playercore.cpp
./playlistitem.cpp
)

SET( TAGARGPLAYER_MOC ${TAGARGPLAYER_MOC}
./tagarg.h
./playlist.h
./playlistitem.h
./playercore.h
./mainwindow.h
)

SET( TAGARGPLAYER_RESOURCES ${TAGARGPLAYER_RESOURCES}
./tagargplayer.qrc
)

SET( TAGARGPLAYER_UIS ${TAGARGPLAYER_UIS}

)


QT4_WRAP_CPP( TAGARGPLAYER_MOC_HEADERS ${TAGARGPLAYER_MOC}  )
QT4_ADD_RESOURCES( TAGARGPLAYER_RESOURCES_HEADERS ${TAGARGPLAYER_RESOURCES} )
QT4_WRAP_UI( TAGARGPLAYER_UI_HEADERS ${TAGARGPLAYER_UIS} )

add_library( TagargPlayer SHARED ${TAGARGPLAYER_CPP} ${TAGARGPLAYER_UI_HEADERS} ${TAGARGPLAYER_RESOURCES_HEADERS} ${TAGARGPLAYER_MOC_HEADERS} )
target_link_libraries( TagargPlayer ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} SiliconLib SDataBase tag phonon  )

install(TARGETS TagargPlayer  DESTINATION ${APPLICATION_INSTALL_PATH} )

