summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/tools/hunspellcheck/CMakeLists.txt
blob: 4d1129c9f775d3787233b1b65213b379076e7473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

  INCLUDE_DIRECTORIES(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/scribus
  ${HUNSPELL_INCLUDE_DIR}
  )

  SET(HUNSPELL_PLUGIN_UI_SRC
	hunspelldialogbase.ui
  )

  SET(HUNSPELL_PLUGIN_MOC_CLASSES
	hunspelldialog.h
    hunspellplugin.h
    hunspellpluginimpl.h
  )

  SET(HUNSPELL_PLUGIN_SOURCES
	hunspelldialog.cpp
	hunspellplugin.cpp
    hunspellpluginimpl.cpp
  )

  SET(SCRIBUS_HUNSPELL_PLUGIN "hunspellplugin")

  QT4_WRAP_UI(HUNSPELL_PLUGIN_UI_SOURCES ${HUNSPELL_PLUGIN_UI_SRC} )
  QT4_WRAP_CPP(HUNSPELL_PLUGIN_MOC_SOURCES ${HUNSPELL_PLUGIN_MOC_CLASSES})

  ADD_LIBRARY(${SCRIBUS_HUNSPELL_PLUGIN} MODULE
    ${HUNSPELL_PLUGIN_SOURCES}
    ${HUNSPELL_PLUGIN_MOC_SOURCES}
	${HUNSPELL_PLUGIN_UI_SOURCES}
  )

  TARGET_LINK_LIBRARIES(${SCRIBUS_HUNSPELL_PLUGIN} ${HUNSPELL_LIBRARIES} ${PLUGIN_LIBRARIES})

  INSTALL(TARGETS ${SCRIBUS_HUNSPELL_PLUGIN}
    LIBRARY
    DESTINATION ${PLUGINDIR}
    PERMISSIONS ${PLUGIN_PERMISSIONS}
  )

  ADD_DEPENDENCIES(${SCRIBUS_HUNSPELL_PLUGIN} ${EXE_NAME})

# SET_TARGET_PROPERTIES(${SCRIBUS_ASPELL_PLUGIN} PROPERTIES VERSION "0.0.1")