project(Library)
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 ("${PROJECT_SOURCE_DIR}/../../Libs/SiDi")

SET( LIBRARY_CPP ${LIBRARY_CPP}
./tagslist.cpp
./itemlist.cpp
./librarydb.cpp
./formatlist.cpp
./libraryui.cpp
./body.cpp
./itempreview.cpp
./charlist.cpp
)

SET( LIBRARY_MOC ${LIBRARY_MOC}
./libraryui.h
./formatlist.h
./itemlist.h
./charlist.h
./itempreview.h
./tagslist.h
)

SET( LIBRARY_RESOURCES ${LIBRARY_RESOURCES}
./library.qrc
)

SET( LIBRARY_UIS ${LIBRARY_UIS}

)


QT4_WRAP_CPP( LIBRARY_MOC_HEADERS ${LIBRARY_MOC}  )
QT4_ADD_RESOURCES( LIBRARY_RESOURCES_HEADERS ${LIBRARY_RESOURCES} )
QT4_WRAP_UI( LIBRARY_UI_HEADERS ${LIBRARY_UIS} )

add_library( Library SHARED ${LIBRARY_CPP} ${LIBRARY_UI_HEADERS} ${LIBRARY_RESOURCES_HEADERS} ${LIBRARY_MOC_HEADERS} )
target_link_libraries( Library ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} SiliconLib SiDi SDataBase )

install(TARGETS Library  DESTINATION ${APPLICATION_INSTALL_PATH} )

