| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | ## Log4Qt#ctkMacroShouldAddExternalproject(Log4Qt_LIBRARIES add_project)if(${add_project})  # Sanity checks  if(DEFINED Log4Qt_DIR AND NOT EXISTS ${Log4Qt_DIR})    message(FATAL_ERROR "Log4Qt_DIR variable is defined but corresponds to non-existing directory")  endif()  set(Log4Qt_enabling_variable Log4Qt_LIBRARIES)  set(proj Log4Qt)  set(proj_DEPENDENCIES)  list(APPEND CTK_DEPENDENCIES ${proj})  set(${Log4Qt_enabling_variable}_INCLUDE_DIRS Log4Qt_INCLUDE_DIRS)  set(${Log4Qt_enabling_variable}_FIND_PACKAGE_CMD Log4Qt)  if(CTK_SUPERBUILD)    if(NOT DEFINED Log4Qt_DIR)      set(revision_tag 8d3558b0f636cbf8ff83)      if(${proj}_REVISION_TAG)        set(revision_tag ${${proj}_REVISION_TAG})      endif()  #     message(STATUS "Adding project:${proj}")      ExternalProject_Add(${proj}        SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}        BINARY_DIR ${proj}-build        PREFIX ${proj}${ep_suffix}        GIT_REPOSITORY "${git_protocol}://github.com/commontk/Log4Qt.git"        GIT_TAG ${revision_tag}        CMAKE_GENERATOR ${gen}        INSTALL_COMMAND ""        UPDATE_COMMAND ""        CMAKE_CACHE_ARGS          ${ep_common_cache_args}          -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}        DEPENDS          ${proj_DEPENDENCIES}        )      set(Log4Qt_DIR ${CMAKE_BINARY_DIR}/${proj}-build)      # Since Log4Qt is statically build, there is not need to add its corresponding      # library output directory to CTK_EXTERNAL_LIBRARY_DIRS    else()      ctkMacroEmptyExternalproject(${proj} "${proj_DEPENDENCIES}")    endif()    list(APPEND CTK_SUPERBUILD_EP_VARS Log4Qt_DIR:PATH)  endif()endif()
 |