Warning, /frameworks/ktexttemplate/examples/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.5) 0002 0003 project(ktexttemplate_examples) 0004 0005 include(ExternalProject) 0006 0007 if (IS_ABSOLUTE ${CMAKE_PREFIX_PATH}) 0008 set(prefixPath ${CMAKE_PREFIX_PATH}) 0009 else() 0010 set(prefixPath ${CMAKE_BINARY_DIR}/${CMAKE_PREFIX_PATH}) 0011 endif() 0012 0013 ExternalProject_Add(books 0014 SOURCE_DIR ${CMAKE_SOURCE_DIR}/books 0015 INSTALL_COMMAND "" 0016 CMAKE_ARGS 0017 -DCMAKE_PREFIX_PATH=${prefixPath} 0018 ) 0019 ExternalProject_Add(codegen 0020 SOURCE_DIR ${CMAKE_SOURCE_DIR}/codegen 0021 INSTALL_COMMAND "" 0022 CMAKE_ARGS 0023 -DCMAKE_PREFIX_PATH=${prefixPath} 0024 DEPENDS books 0025 ) 0026 0027 ExternalProject_Add(contacts 0028 SOURCE_DIR ${CMAKE_SOURCE_DIR}/contacts 0029 INSTALL_COMMAND "" 0030 CMAKE_ARGS 0031 -DCMAKE_PREFIX_PATH=${prefixPath} 0032 DEPENDS codegen 0033 ) 0034 0035 if(FALSE) # remove once htmlapps is ported 0036 0037 # TODO port away from Qt5::XmlPatterns & Qt5::WebKit 0038 ExternalProject_Add(htmlapps 0039 SOURCE_DIR ${CMAKE_SOURCE_DIR}/htmlapps 0040 INSTALL_COMMAND "" 0041 CMAKE_ARGS 0042 -DCMAKE_PREFIX_PATH=${prefixPath} 0043 DEPENDS contacts 0044 ) 0045 0046 endif()