You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
977 B

  1. set (qt4debugappender_sources
  2. qt4debugappender.cxx)
  3. if (UNICODE)
  4. add_definitions (-DUNICODE -D_UNICODE -UMBCS -U_MBCS)
  5. endif (UNICODE)
  6. find_package (Qt4 REQUIRED)
  7. include (${QT_USE_FILE})
  8. set (qt4debugappender log4cplusqt4debugappender${log4cplus_postfix})
  9. add_library (${qt4debugappender} ${qt4debugappender_sources})
  10. target_link_libraries (${qt4debugappender}
  11. ${log4cplus}
  12. ${QT_LIBRARIES}
  13. ${CMAKE_THREAD_LIBS_INIT})
  14. set_target_properties (${qt4debugappender} PROPERTIES
  15. VERSION "${log4cplus_version_major}.${log4cplus_version_minor}.${log4cplus_version_patch}"
  16. SOVERSION "${log4cplus_soversion}"
  17. COMPILE_FLAGS "-DINSIDE_LOG4CPLUS_QT4DEBUGAPPENDER")
  18. if (WIN32)
  19. set_target_properties (${qt4debugappender} PROPERTIES
  20. DEBUG_POSTFIX "D")
  21. endif ()
  22. install (TARGETS ${qt4debugappender}
  23. LIBRARY DESTINATION lib
  24. ARCHIVE DESTINATION lib
  25. RUNTIME DESTINATION bin)
  26. install (FILES ../include/log4cplus/qt4debugappender.h
  27. DESTINATION include/log4cplus)