Merge branch 'master' of gitorious.org:odfkit/webodf
[odfkit:webodf.git] / programs / CMakeLists.txt
1 macro(COPY_FILES _varname _srcdir _tgtdir)
2   foreach(_file ${ARGN})
3     GET_FILENAME_COMPONENT(_subdir ${_file} PATH)
4     FILE(MAKE_DIRECTORY ${_tgtdir}/${_subdir})
5     add_custom_command(
6       OUTPUT ${_tgtdir}/${_file}
7       COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different
8         ${_srcdir}/${_file}
9         ${_tgtdir}/${_file}
10       DEPENDS
11         ${_srcdir}/${_file}
12     )
13     set(${_varname} ${${_varname}} ${_tgtdir}/${_file})
14   endforeach(_file)
15 endmacro(COPY_FILES _directory _files)
16
17 if(QT4_FOUND)
18   add_subdirectory(qtjsruntime)
19   add_subdirectory(nativeQtClient)
20   add_subdirectory(docnosis)
21 endif(QT4_FOUND)
22
23 if(ANDROID_SDK_DIR AND ANT)
24   add_subdirectory(android)
25 endif(ANDROID_SDK_DIR AND ANT)
26
27 add_subdirectory(firefoxextension)
28
29 add_subdirectory(touchui)
30 add_subdirectory(playbook)