Log4Qt.cmake 790 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # Log4Qt
  3. #
  4. SET(Log4Qt_DEPENDS)
  5. ctkMacroShouldAddExternalProject(Log4Qt_LIBRARIES add_project)
  6. IF(${add_project})
  7. # Sanity checks
  8. IF(DEFINED Log4Qt_DIR AND NOT EXISTS ${Log4Qt_DIR})
  9. MESSAGE(FATAL_ERROR "Log4Qt_DIR variable is defined but corresponds to non-existing directory")
  10. ENDIF()
  11. IF(NOT DEFINED Log4Qt_DIR)
  12. SET(proj Log4Qt)
  13. # MESSAGE(STATUS "Adding project:${proj}")
  14. SET(Log4Qt_DEPENDS ${proj})
  15. ExternalProject_Add(${proj}
  16. GIT_REPOSITORY "git://github.com/commontk/Log4Qt.git"
  17. GIT_TAG "patched"
  18. CMAKE_GENERATOR ${gen}
  19. BUILD_COMMAND ""
  20. CMAKE_ARGS
  21. ${ep_common_args}
  22. -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}
  23. )
  24. SET(Log4Qt_DIR ${ep_install_dir})
  25. ENDIF()
  26. ENDIF()