Warning, /office/calligra/filters/words/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # check whether we can compile wv2 0002 0003 macro_optional_find_package(Iconv) 0004 set_package_properties(Iconv PROPERTIES 0005 URL "http://www.gnu.org/software/libiconv/" 0006 PURPOSE "Required by the msword .doc filter" 0007 TYPE OPTIONAL 0008 ) 0009 0010 if( ICONV_FOUND ) 0011 set( HAVE_ICONV_H 1 ) 0012 set( ICONV_REQUIRES_CONST ${ICONV_SECOND_ARGUMENT_IS_CONST} ) 0013 endif() 0014 0015 check_include_file( sys/iconv.h HAVE_SYS_ICONV_H ) 0016 0017 # Add "COMPILE_DEFINITIONS definitions" to TRY_RUN only if we have compile definitions 0018 0019 # Make sure ICONV_COMPILE_DEFINITIONS will never be empty (in case we define neither HAVE_ICONV_H nor HAVE_SYS_ICONV_H), 0020 # otherwise TRY_RUN will fail due to COMPILE_DEFINITIONS being followed by nothing 0021 0022 set( ICONV_COMPILE_DEFINITIONS "-DBLAH" ) 0023 0024 if( HAVE_ICONV_H ) 0025 set( ICONV_COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} "-DHAVE_ICONV_H" ) 0026 endif() 0027 0028 if( HAVE_SYS_ICONV_H ) 0029 set( ICONV_COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} "-DHAVE_SYS_ICONV_H" ) 0030 endif() 0031 0032 try_run( MODERN_ICONV_RUN MODERN_ICONV_COMPILE 0033 ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp 0034 ${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c 0035 CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=${ICONV_LIBRARIES}" 0036 "-DINCLUDE_DIRECTORIES:STRING=${ICONV_INCLUDE_DIR}" 0037 COMPILE_DEFINITIONS ${ICONV_COMPILE_DEFINITIONS} ) 0038 0039 if( MODERN_ICONV_RUN GREATER 0 OR NOT MODERN_ICONV_COMPILE ) 0040 message( STATUS "wv2 depends on a modern iconv installation, supporting UNICODELITTLE and" ) 0041 message( STATUS "UNICODEBIG. The detected iconv version doesn't support these conversions." ) 0042 message( STATUS "" ) 0043 message( STATUS "Please get a new libiconv from http://www.gnu.org/software/libiconv/" ) 0044 message( STATUS "You might want to install the library to some alternative directory, in" ) 0045 message( STATUS "order not to overwrite your current installation. Please use the options" ) 0046 message( STATUS "-DICONV_INCLUDE_DIR=DIR and -DICONV_LIBRARIES=DIR to specify the location." ) 0047 message( STATUS "" ) 0048 set(ICONV_FOUND FALSE) 0049 endif() 0050 0051 0052 include_directories(${KOMAIN_INCLUDES} ) 0053 0054 if(SHOULD_BUILD_FILTER_APPLIXWORD_TO_ODT) 0055 add_subdirectory( applixword ) 0056 endif() 0057 0058 add_subdirectory( wordperfect ) 0059 0060 add_subdirectory( works ) 0061 0062 add_subdirectory( ascii ) 0063 0064 add_subdirectory( wiki ) 0065 0066 add_subdirectory( rtf ) 0067 0068 add_subdirectory( epub ) 0069 0070 if(SHOULD_BUILD_FILTER_ODT_TO_MOBI) 0071 add_subdirectory( mobi ) 0072 endif() 0073 0074 if(SHOULD_BUILD_FILTER_DOC_TO_ODT) 0075 add_subdirectory(msword-odf) 0076 endif() 0077 0078 if(SHOULD_BUILD_FILTER_DOCX_TO_ODT) 0079 add_subdirectory( docx ) 0080 endif()