Apply clang-format and cmake-format
This commit is contained in:
parent
869a3b2ae2
commit
7249751d30
|
@ -305,9 +305,9 @@ macro (compute_dependencies_for_package_config
|
||||||
set(${OUTPUT_VAR_LIBS} "${${OUTPUT_VAR_LIBS}} ${${DEPENDENCY_VARNAME}_IMPORTED_LOCATION}")
|
set(${OUTPUT_VAR_LIBS} "${${OUTPUT_VAR_LIBS}} ${${DEPENDENCY_VARNAME}_IMPORTED_LOCATION}")
|
||||||
continue()
|
continue()
|
||||||
endif ()
|
endif ()
|
||||||
# assume the target is a 3rd party library built within the current project as a bundled dependency
|
# assume the target is a 3rd party library built within the current project as a bundled dependency -> the target
|
||||||
# -> the target is supposed to be installed in either a standard search directory or the same directory as this library
|
# is supposed to be installed in either a standard search directory or the same directory as this library so a
|
||||||
# so a simple -l flag should be sufficient
|
# simple -l flag should be sufficient
|
||||||
set(${OUTPUT_VAR_LIBS} "${${OUTPUT_VAR_LIBS}} -l${DEPENDENCY}")
|
set(${OUTPUT_VAR_LIBS} "${${OUTPUT_VAR_LIBS}} -l${DEPENDENCY}")
|
||||||
else ()
|
else ()
|
||||||
# add raw dependency
|
# add raw dependency
|
||||||
|
@ -376,7 +376,7 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
||||||
# determine install dir for Qt plugins
|
# determine install dir for Qt plugins
|
||||||
if ("${META_PROJECT_TYPE}" STREQUAL "qtplugin")
|
if ("${META_PROJECT_TYPE}" STREQUAL "qtplugin")
|
||||||
if (QT_PLUGIN_DIR)
|
if (QT_PLUGIN_DIR)
|
||||||
set(LIBRARY_DESTINATION ${QT_PLUGIN_DIR})
|
set(LIBRARY_DESTINATION "${QT_PLUGIN_DIR}")
|
||||||
else ()
|
else ()
|
||||||
if (COMMAND query_qmake_variable)
|
if (COMMAND query_qmake_variable)
|
||||||
query_qmake_variable(QT_INSTALL_PLUGINS)
|
query_qmake_variable(QT_INSTALL_PLUGINS)
|
||||||
|
@ -411,7 +411,11 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
||||||
# add install targets and export targets
|
# add install targets and export targets
|
||||||
set(TARGETS_TO_EXPORT "${META_TARGET_NAME}")
|
set(TARGETS_TO_EXPORT "${META_TARGET_NAME}")
|
||||||
foreach (BUNDLED_TARGET ${BUNDLED_TARGETS})
|
foreach (BUNDLED_TARGET ${BUNDLED_TARGETS})
|
||||||
if (NOT ${BUNDLED_TARGET} IN_LIST LIBRARIES OR (NOT BUILD_SHARED_LIBS AND ${BUNDLED_TARGET} IN_LIST PRIVATE_LIBRARIES))
|
if (NOT
|
||||||
|
${BUNDLED_TARGET}
|
||||||
|
IN_LIST
|
||||||
|
LIBRARIES
|
||||||
|
OR (NOT BUILD_SHARED_LIBS AND ${BUNDLED_TARGET} IN_LIST PRIVATE_LIBRARIES))
|
||||||
list(APPEND TARGETS_TO_EXPORT ${BUNDLED_TARGET})
|
list(APPEND TARGETS_TO_EXPORT ${BUNDLED_TARGET})
|
||||||
endif ()
|
endif ()
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
@ -435,9 +439,7 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS)
|
||||||
DESTINATION "${INCLUDE_SUBDIR}/${META_PROJECT_NAME}/${HEADER_DIR}"
|
DESTINATION "${INCLUDE_SUBDIR}/${META_PROJECT_NAME}/${HEADER_DIR}"
|
||||||
COMPONENT header)
|
COMPONENT header)
|
||||||
endforeach ()
|
endforeach ()
|
||||||
install(FILES "${VERSION_HEADER_FILE}"
|
install(FILES "${VERSION_HEADER_FILE}" DESTINATION "${INCLUDE_SUBDIR}/${META_PROJECT_NAME}" COMPONENT header)
|
||||||
DESTINATION "${INCLUDE_SUBDIR}/${META_PROJECT_NAME}"
|
|
||||||
COMPONENT header)
|
|
||||||
if (NOT TARGET install-header)
|
if (NOT TARGET install-header)
|
||||||
add_custom_target(install-header
|
add_custom_target(install-header
|
||||||
COMMAND "${CMAKE_COMMAND}"
|
COMMAND "${CMAKE_COMMAND}"
|
||||||
|
|
|
@ -135,7 +135,7 @@ TestApplication::TestApplication(int argc, const char *const *argv)
|
||||||
m_unitsArg.setRequiredValueCount(Argument::varValueCount);
|
m_unitsArg.setRequiredValueCount(Argument::varValueCount);
|
||||||
m_runArg.setImplicit(true);
|
m_runArg.setImplicit(true);
|
||||||
m_runArg.setSubArguments({ &m_testFilesPathArg, &m_applicationPathArg, &m_workingDirArg, &m_unitsArg });
|
m_runArg.setSubArguments({ &m_testFilesPathArg, &m_applicationPathArg, &m_workingDirArg, &m_unitsArg });
|
||||||
m_parser.setMainArguments({&m_listArg, &m_runArg, &m_parser.noColorArg(), &m_parser.helpArg()});
|
m_parser.setMainArguments({ &m_listArg, &m_runArg, &m_parser.noColorArg(), &m_parser.helpArg() });
|
||||||
|
|
||||||
// parse arguments
|
// parse arguments
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue