Files
qt-creator/src/plugins/clangtools/CMakeLists.txt

42 lines
1.6 KiB
CMake
Raw Normal View History

if (WITH_TESTS)
set(TST_COMPONENT QmakeProjectManager)
endif()
find_package(yaml-cpp QUIET MODULE)
add_qtc_plugin(ClangTools
CONDITION TARGET libclang AND TARGET yaml-cpp
DEPENDS ClangSupport libclang yaml-cpp
PLUGIN_DEPENDS Core Debugger CppTools ${TST_COMPONENT}
INCLUDES ${CLANG_INCLUDE_DIRS}
SOURCES
clangfileinfo.h
clangfixitsrefactoringchanges.cpp clangfixitsrefactoringchanges.h
clangselectablefilesdialog.cpp clangselectablefilesdialog.h clangselectablefilesdialog.ui
clangtidyclazyrunner.cpp clangtidyclazyrunner.h
clangtool.cpp clangtool.h
clangtoolruncontrol.cpp clangtoolruncontrol.h
clangtoolrunner.cpp clangtoolrunner.h
clangtools_global.h
clangtoolsconstants.h
clangtoolsdiagnostic.cpp clangtoolsdiagnostic.h
clangtoolsdiagnosticmodel.cpp clangtoolsdiagnosticmodel.h
clangtoolsdiagnosticview.cpp clangtoolsdiagnosticview.h
clangtoolslogfilereader.cpp clangtoolslogfilereader.h
clangtoolsplugin.cpp clangtoolsplugin.h
clangtoolsprojectsettings.cpp clangtoolsprojectsettings.h
clangtoolsprojectsettingswidget.cpp clangtoolsprojectsettingswidget.h clangtoolsprojectsettingswidget.ui
clangtoolssettings.cpp clangtoolssettings.h
clangtoolsutils.cpp clangtoolsutils.h
runsettingswidget.cpp runsettingswidget.h runsettingswidget.ui
settingswidget.cpp settingswidget.h settingswidget.ui
)
extend_qtc_plugin(ClangTools
CONDITION WITH_TESTS
SOURCES
clangtoolspreconfiguredsessiontests.cpp clangtoolspreconfiguredsessiontests.h
clangtoolsunittests.cpp clangtoolsunittests.h
clangtoolsunittests.qrc
)