include_directories(
	${CMAKE_SOURCE_DIR}
	${CMAKE_SOURCE_DIR}/scribus
)

set(IMPORTEMF_PLUGIN_MOC_CLASSES
	importemf.h
	importemfplugin.h
)

set(IMPORTEMF_PLUGIN_SOURCES
	importemf.cpp
	importemfplugin.cpp
)

set(SCRIBUS_IMPORTEMF_PLUGIN "importemf")

QT5_WRAP_CPP(IMPORTEMF_PLUGIN_MOC_SOURCES ${IMPORTEMF_PLUGIN_MOC_CLASSES})

add_library(${SCRIBUS_IMPORTEMF_PLUGIN} MODULE ${IMPORTEMF_PLUGIN_SOURCES} ${IMPORTEMF_PLUGIN_MOC_SOURCES})

target_link_libraries(${SCRIBUS_IMPORTEMF_PLUGIN} ${PLUGIN_LIBRARIES})

install(TARGETS ${SCRIBUS_IMPORTEMF_PLUGIN}
	LIBRARY
	DESTINATION ${PLUGINDIR}
	PERMISSIONS ${PLUGIN_PERMISSIONS}
)

add_dependencies(${SCRIBUS_IMPORTEMF_PLUGIN} ${EXE_NAME})
