Warning, /maui/mauikit-documents/src/code/epub/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(PLUGIN_DIR Epub) 0002 0003 set(epubreader_SRCS 0004 epubreader.cpp 0005 cbzreader.cpp 0006 pdfreader.cpp 0007 epubreaderplugin.cpp 0008 quazip/JlCompress.cpp 0009 quazip/qioapi.cpp 0010 quazip/quacrc32.cpp 0011 quazip/quaadler32.cpp 0012 quazip/quazip.cpp 0013 quazip/quazipfile.cpp 0014 quazip/quagzipfile.cpp 0015 quazip/quazipfileinfo.cpp 0016 quazip/quaziodevice.cpp 0017 quazip/quazipnewinfo.cpp 0018 quazip/unzip.c 0019 quazip/zip.c 0020 ../qhttpserver/qhttpconnection.cpp 0021 ../qhttpserver/qhttpresponse.cpp 0022 ../qhttpserver/qhttpserver.cpp 0023 ) 0024 0025 add_library(epubreaderplugin MODULE 0026 ${epubreader_SRCS} 0027 ) 0028 0029 qt5_use_modules(epubreaderplugin Gui Xml Qml Quick) 0030 target_link_libraries(epubreaderplugin poppler-qt5) 0031 0032 # Copy the plugin file to the build dir 0033 set_target_properties(epubreaderplugin PROPERTIES 0034 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../${PLUGIN_DIR} 0035 ) 0036 0037 # Copy the qmldir file to the build dir 0038 add_custom_command(TARGET epubreaderplugin POST_BUILD 0039 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_CURRENT_BINARY_DIR}/../${PLUGIN_DIR} 0040 ) 0041 0042 # Install plugin file 0043 string(REPLACE "//" "/" LIB_DIR ${DATA_DIR}/${PLUGIN_DIR}) 0044 install(TARGETS epubreaderplugin DESTINATION ${LIB_DIR}) 0045 install(FILES qmldir DESTINATION ${LIB_DIR})