| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | 
							- #
 
- # Log4Qt
 
- #
 
- superbuild_include_once()
 
- set(proj Log4Qt)
 
- set(${proj}_DEPENDENCIES "")
 
- superbuild_include_dependencies(PROJECT_VAR proj)
 
- if(${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
 
-   message(FATAL_ERROR "Enabling ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj} is not supported !")
 
- endif()
 
- # 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()
 
- if(NOT DEFINED Log4Qt_DIR)
 
-   set(revision_tag 8d3558b0f636cbf8ff83)
 
-   if(${proj}_REVISION_TAG)
 
-     set(revision_tag ${${proj}_REVISION_TAG})
 
-   endif()
 
-   set(location_args )
 
-   if(${proj}_URL)
 
-     set(location_args URL ${${proj}_URL})
 
-   elseif(${proj}_GIT_REPOSITORY)
 
-     set(location_args GIT_REPOSITORY ${${proj}_GIT_REPOSITORY}
 
-                       GIT_TAG ${revision_tag})
 
-   else()
 
-     set(location_args GIT_REPOSITORY "${git_protocol}://github.com/commontk/Log4Qt.git"
 
-                       GIT_TAG ${revision_tag})
 
-   endif()
 
-   ExternalProject_Add(${proj}
 
-     ${${proj}_EXTERNAL_PROJECT_ARGS}
 
-     SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
 
-     BINARY_DIR ${proj}-build
 
-     PREFIX ${proj}${ep_suffix}
 
-     ${location_args}
 
-     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)
 
- else()
 
-   superbuild_add_empty_external_project(${proj} "${${proj}_DEPENDENCIES}")
 
- endif()
 
- mark_as_superbuild(
 
-   VARS Log4Qt_DIR:PATH
 
-   LABELS "FIND_PACKAGE"
 
-   )
 
 
  |