SET(CMAKE_INCLUDE_CURRENT_DIR ON)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../include ${NEON_INCLUDE_DIR})

FILE(GLOB _sources ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/xmlParser/*.cpp)
ADD_LIBRARY(musicbrainz3 SHARED ${_sources})

IF(WIN32)
		TARGET_LINK_LIBRARIES(musicbrainz3 wsock32)
ENDIF(WIN32)
TARGET_LINK_LIBRARIES(musicbrainz3 ${NEON_LIBRARIES})
SET_TARGET_PROPERTIES(musicbrainz3 PROPERTIES
    VERSION ${musicbrainz3_VERSION}
    SOVERSION ${musicbrainz3_SOVERSION}
    DEFINE_SYMBOL MB_API_EXPORTS
)

IF(DISCID_FOUND)
    INCLUDE_DIRECTORIES(${DISCID_INCLUDE_DIR})
    TARGET_LINK_LIBRARIES(musicbrainz3 ${DISCID_LIBRARIES})
ENDIF(DISCID_FOUND)

INSTALL(TARGETS musicbrainz3 DESTINATION ${LIB_INSTALL_DIR})

SET(CMAKE_INCLUDE_CURRENT_DIR ON)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../include ${NEON_INCLUDE_DIR})

FILE(GLOB _sources ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/xmlParser/*.cpp)
ADD_LIBRARY(musicbrainz3 SHARED ${_sources})

SET_TARGET_PROPERTIES(musicbrainz3 PROPERTIES
    VERSION ${musicbrainz3_VERSION}
    SOVERSION ${musicbrainz3_SOVERSION}
    DEFINE_SYMBOL MB_API_EXPORTS
)

TARGET_LINK_LIBRARIES(musicbrainz3 ${NEON_LIBRARIES})

IF(DISCID_FOUND)
    INCLUDE_DIRECTORIES(${DISCID_INCLUDE_DIR})
    TARGET_LINK_LIBRARIES(musicbrainz3 ${DISCID_LIBRARIES})
ENDIF(DISCID_FOUND)

IF(WIN32)
    TARGET_LINK_LIBRARIES(musicbrainz3 wsock32 winmm)
ENDIF(WIN32)

INSTALL(TARGETS musicbrainz3 DESTINATION ${LIB_INSTALL_DIR})

Fix compilation with static libraries on Windows.
Fix compilation with static libraries on Windows.

git-svn-id: 95f3c568a8d713c8a134cac44d96183059969c76@9275 b0b80210-5d09-0410-99dd-b4bd03f891c0
