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

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

set(msn_STAT_SRCS
    authdata.cpp
    message.cpp
    connection.cpp
    switchboardserver.cpp
    notificationserver.cpp
    util.cpp
    md5.cpp
    soap.cpp
    p2p.cpp
    xmlParser.cpp
    msnobject.cpp
    buddy.cpp
    passport.cpp
)

set(msn_HEADERS
    authdata.h
    message.h
    connection.h
    switchboardserver.h
    notificationserver.h
    util.h
    externals.h
    errorcodes.h
    msn.h
    buddy.h
    passport.h
    sstream_fix.h
    soap.h
    p2p.h
    msnobject.h)

add_library(msn SHARED ${msn_STAT_SRCS})
set_target_properties(msn PROPERTIES VERSION 0.1.0 
                                     SOVERSION 0.1
)
target_link_libraries(msn crypto)

########### install files ###############
install(TARGETS msn DESTINATION  ${CMAKE_INSTALL_PREFIX}/lib)
install(FILES ${msn_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/msn)

