Subversion Repositories Scribus

Rev

Rev 19729 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

INCLUDE(FindPkgConfig)
pkg_check_modules(LIBWPG libwpg-0.2)
IF (LIBWPG_FOUND)
        pkg_check_modules(LIBWPD libwpd-0.9)
        IF (LIBWPD_FOUND)
                pkg_check_modules(LIBWPD_STREAM libwpd-stream-0.9)
                IF (LIBWPD_STREAM_FOUND)
                        pkg_check_modules(LIBVISIO libvisio-0.0)
                        IF (LIBVISIO_FOUND)
                                INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/scribus ${LIBWPG_INCLUDE_DIRS} ${LIBWPD_INCLUDE_DIRS} ${LIBWPD_STREAM_INCLUDE_DIRS} ${LIBVISIO_INCLUDE_DIRS})
                                SET(IMPORTVSD_PLUGIN_MOC_CLASSES importvsd.h importvsdplugin.h)
                                SET(IMPORTVSD_PLUGIN_SOURCES importvsd.cpp importvsdplugin.cpp)
                                SET(SCRIBUS_IMPORTVSD_PLUGIN "importvsd")
                                QT5_WRAP_CPP(IMPORTVSD_PLUGIN_MOC_SOURCES ${IMPORTVSD_PLUGIN_MOC_CLASSES})
                                ADD_LIBRARY(${SCRIBUS_IMPORTVSD_PLUGIN} MODULE ${IMPORTVSD_PLUGIN_SOURCES} ${IMPORTVSD_PLUGIN_MOC_SOURCES})
                                TARGET_LINK_LIBRARIES(${SCRIBUS_IMPORTVSD_PLUGIN} ${PLUGIN_LIBRARIES} ${LIBWPG_LDFLAGS} ${LIBWPD_LDFLAGS} ${LIBWPD_STREAM_LDFLAGS} ${LIBVISIO_LDFLAGS})
                                INSTALL(TARGETS ${SCRIBUS_IMPORTVSD_PLUGIN} LIBRARY DESTINATION ${PLUGINDIR} PERMISSIONS ${PLUGIN_PERMISSIONS})
                                ADD_DEPENDENCIES(${SCRIBUS_IMPORTVSD_PLUGIN} ${EXE_NAME})
                        ENDIF (LIBVISIO_FOUND)
                ENDIF (LIBWPD_STREAM_FOUND)
        ENDIF (LIBWPD_FOUND)
ENDIF (LIBWPG_FOUND)