Warning, /maui/mauikit-documents/src/code/epub/quazip/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # set all include directories for in and out of source builds
0002 include_directories(
0003         ${CMAKE_CURRENT_SOURCE_DIR}
0004         ${CMAKE_CURRENT_BINARY_DIR}
0005         ${ZLIB_INCLUDE_DIRS}
0006 )
0007 
0008 file(GLOB SRCS "*.c" "*.cpp")
0009 file(GLOB PUBLIC_HEADERS "*.h")
0010 
0011 # Must be added to enable export macro
0012 ADD_DEFINITIONS(-DQUAZIP_BUILD)
0013 
0014 qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
0015 set(SRCS ${SRCS} ${MOC_SRCS})
0016 
0017 add_library(${QUAZIP_LIB_TARGET_NAME} SHARED ${SRCS})
0018 add_library(quazip_static STATIC ${SRCS})
0019  
0020 # Windows uses .lib extension for both static and shared library
0021 # *nix systems use different extensions for SHARED and STATIC library and by convention both libraries have the same name
0022 if (NOT WIN32)
0023         set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX})
0024 endif ()
0025 
0026 set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION 1.0.0 SOVERSION 1 DEBUG_POSTFIX d)
0027 # Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
0028 target_link_libraries(${QUAZIP_LIB_TARGET_NAME} quazip_static ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
0029 
0030 install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip${QUAZIP_LIB_VERSION_SUFFIX})
0031 install(TARGETS ${QUAZIP_LIB_TARGET_NAME} quazip_static LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})