Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/AkonadiMacros.cmake
Show All 23 Lines | |||||
24 | # Internal server macros | 24 | # Internal server macros | ||
25 | function(akonadi_run_xsltproc) | 25 | function(akonadi_run_xsltproc) | ||
26 | if (NOT XSLTPROC_EXECUTABLE) | 26 | if (NOT XSLTPROC_EXECUTABLE) | ||
27 | message(FATAL_ERROR "xsltproc executable not found but needed by AKONADI_RUN_XSLTPROC()") | 27 | message(FATAL_ERROR "xsltproc executable not found but needed by AKONADI_RUN_XSLTPROC()") | ||
28 | endif() | 28 | endif() | ||
29 | 29 | | |||
30 | set(options ) | 30 | set(options ) | ||
31 | set(oneValueArgs XSL XML CLASSNAME BASENAME) | 31 | set(oneValueArgs XSL XML CLASSNAME BASENAME) | ||
32 | set(multiValueArgs ) | 32 | set(multiValueArgs DEPENDS) | ||
33 | cmake_parse_arguments(XSLT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | 33 | cmake_parse_arguments(XSLT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
34 | if (NOT XSLT_XSL) | 34 | if (NOT XSLT_XSL) | ||
35 | message(FATAL_ERROR "Required argument XSL missing in AKONADI_RUN_XSLTPROC() call") | 35 | message(FATAL_ERROR "Required argument XSL missing in AKONADI_RUN_XSLTPROC() call") | ||
36 | endif() | 36 | endif() | ||
37 | if (NOT XSLT_XML) | 37 | if (NOT XSLT_XML) | ||
38 | message(FATAL_ERROR "Required argument XML missing in AKONADI_RUN_XSLTPROC() call") | 38 | message(FATAL_ERROR "Required argument XML missing in AKONADI_RUN_XSLTPROC() call") | ||
39 | endif() | 39 | endif() | ||
40 | if (NOT XSLT_BASENAME) | 40 | if (NOT XSLT_BASENAME) | ||
Show All 23 Lines | 63 | COMMAND ${XSLTPROC_EXECUTABLE} | |||
64 | --output ${XSLT_BASENAME}.cpp | 64 | --output ${XSLT_BASENAME}.cpp | ||
65 | --stringparam code source | 65 | --stringparam code source | ||
66 | --stringparam fileName ${XSLT_BASENAME} | 66 | --stringparam fileName ${XSLT_BASENAME} | ||
67 | ${extra_params} | 67 | ${extra_params} | ||
68 | ${xsl_relpath} | 68 | ${xsl_relpath} | ||
69 | ${xml_relpath} | 69 | ${xml_relpath} | ||
70 | DEPENDS ${XSLT_XSL} | 70 | DEPENDS ${XSLT_XSL} | ||
71 | ${XSLT_XML} | 71 | ${XSLT_XML} | ||
72 | ${XSLT_DEPENDS} | ||||
72 | ) | 73 | ) | ||
73 | 74 | | |||
74 | set_property(SOURCE | 75 | set_property(SOURCE | ||
75 | ${CMAKE_CURRENT_BINARY_DIR}/${XSLT_BASENAME}.cpp | 76 | ${CMAKE_CURRENT_BINARY_DIR}/${XSLT_BASENAME}.cpp | ||
76 | ${CMAKE_CURRENT_BINARY_DIR}/${XSLT_BASENAME}.h | 77 | ${CMAKE_CURRENT_BINARY_DIR}/${XSLT_BASENAME}.h | ||
77 | PROPERTY SKIP_AUTOMOC TRUE | 78 | PROPERTY SKIP_AUTOMOC TRUE | ||
78 | ) | 79 | ) | ||
79 | endfunction() | 80 | endfunction() | ||
Show All 28 Lines |