Subversion Repositories Scribus

Rev

Rev 17163 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5142 cbradney 1
INCLUDE_DIRECTORIES(
2
${CMAKE_SOURCE_DIR}
3
${CMAKE_SOURCE_DIR}/scribus
4
)
5
 
17499 craig 6
# Gentoo has an option for no examples. Let's make the ebuild simpler and open up the option to others, but leave as a default for us
7
IF (NOT WANT_NOEXAMPLES)
5142 cbradney 8
ADD_SUBDIRECTORY(samples)
17499 craig 9
ENDIF (NOT WANT_NOEXAMPLES)
5142 cbradney 10
ADD_SUBDIRECTORY(scripts)
11
 
9606 subik 12
SET(SCRIPTER_PLUGIN_UI_SRC
9688 cbradney 13
  pconsole.ui
10243 cbradney 14
  runscriptdialog.ui
9688 cbradney 15
  scripterprefsgui.ui
9606 subik 16
)
17
 
5142 cbradney 18
SET(SCRIPTER_PLUGIN_MOC_CLASSES
9688 cbradney 19
  pconsole.h
20
  scriptplugin.h
21
  scriptercore.h
22
  scripterprefsgui.h
23
  runscriptdialog.h
5142 cbradney 24
)
25
 
26
SET(SCRIPTER_PLUGIN_SOURCES
9688 cbradney 27
  cmdcolor.cpp
28
  cmddialog.cpp
29
  cmddoc.cpp
30
  cmdgetprop.cpp
31
  cmdgetsetprop.cpp
32
  cmdmani.cpp
33
  cmdmisc.cpp
34
  cmdobj.cpp
35
  cmdpage.cpp
36
  cmdsetprop.cpp
11384 subik 37
  cmdstyle.cpp
9688 cbradney 38
  cmdtext.cpp
39
  cmdutil.cpp
40
  guiapp.cpp
41
  objimageexport.cpp
42
  objpdffile.cpp
43
  objprinter.cpp
44
  pconsole.cpp
45
  runscriptdialog.cpp
46
  scriptercore.cpp
47
  scripterprefsgui.cpp
48
  scriptplugin.cpp
49
  svgimport.cpp
5142 cbradney 50
)
51
 
52
SET(SCRIBUS_SCRIPTER_PLUGIN "scriptplugin")
9606 subik 53
 
54
QT4_WRAP_UI(SCRIPTER_PLUGIN_UI_SOURCES ${SCRIPTER_PLUGIN_UI_SRC} )
9688 cbradney 55
QT4_WRAP_CPP(SCRIPTER_PLUGIN_MOC_SOURCES ${SCRIPTER_PLUGIN_MOC_CLASSES})
5142 cbradney 56
 
9688 cbradney 57
ADD_LIBRARY(${SCRIBUS_SCRIPTER_PLUGIN} MODULE
58
  ${SCRIPTER_PLUGIN_SOURCES}
59
  ${SCRIPTER_PLUGIN_MOC_SOURCES}
60
  ${SCRIPTER_PLUGIN_UI_SOURCES})
5142 cbradney 61
 
8749 cbradney 62
TARGET_LINK_LIBRARIES(${SCRIBUS_SCRIPTER_PLUGIN}
63
  ${PYTHON_LIBRARIES}
64
)
65
 
10778 craig 66
TARGET_LINK_LIBRARIES(${SCRIBUS_SCRIPTER_PLUGIN} ${PLUGIN_LIBRARIES})
8782 avox 67
 
5142 cbradney 68
INSTALL(TARGETS ${SCRIBUS_SCRIPTER_PLUGIN}
69
  LIBRARY
70
  DESTINATION ${PLUGINDIR}
71
  PERMISSIONS ${PLUGIN_PERMISSIONS}
72
)
73
 
10784 cbradney 74
ADD_DEPENDENCIES(${SCRIBUS_SCRIPTER_PLUGIN} ${EXE_NAME})
75
 
5142 cbradney 76
# SET_TARGET_PROPERTIES(${SCRIBUS_SCRIPTER_PLUGIN} PROPERTIES VERSION "0.0.0")