/src/libtomahawk/thirdparty/quazip/quazip/CMakeLists.txt

http://github.com/tomahawk-player/tomahawk · CMake · 15 lines · 12 code · 3 blank · 0 comment · 0 complexity · 84b18b2845bb44cab62514d0c0e6af32 MD5 · raw file

  1. file(GLOB SRCS "*.c" "*.cpp")
  2. file(GLOB PUBLIC_HEADERS "*.h")
  3. qt4_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
  4. set(SRCS ${SRCS} ${MOC_SRCS})
  5. add_definitions( -DQUAZIP_BUILD )
  6. IF(WIN32)
  7. add_library(quazip SHARED ${SRCS})
  8. ELSE()
  9. add_library(quazip STATIC ${SRCS})
  10. ENDIF()
  11. set_target_properties(quazip PROPERTIES VERSION 1 SOVERSION 1.0.0)
  12. target_link_libraries(quazip ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} -lz)